---
name: "dev_open"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/dev_open"
---

# dev\_open(9)

prepare an interface for use.

## NAME

dev\_open - prepare an interface for use.

## SYNOPSIS

**int dev\_open(struct net\_device \*** *dev***);**

## ARGUMENTS

*dev*

device to open

## DESCRIPTION

Takes a device from down to up state. The device's private open function is invoked and then the multicast lists are loaded. Finally the device is moved into the up state and a **NETDEV\_UP** message is sent to the netdev notifier chain.

Calling this function on an active interface is a nop. On a failure a negative errno code is returned.

## COPYRIGHT
