'\" t .\" Title: dev_open .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "DEV_OPEN" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "Network device support" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" dev_open \- prepare an interface for use\&. .SH "SYNOPSIS" .HP \w'int\ dev_open('u .BI "int dev_open(struct\ net_device\ *\ " "dev" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 device to open .RE .SH "DESCRIPTION" .PP Takes a device from down to up state\&. The device\*(Aqs private open function is invoked and then the multicast lists are loaded\&. Finally the device is moved into the up state and a \fBNETDEV_UP\fR message is sent to the netdev notifier chain\&. .PP Calling this function on an active interface is a nop\&. On a failure a negative errno code is returned\&. .SH "COPYRIGHT" .br