---
name: "netdev_set_master"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/netdev_set_master"
---

# netdev\_set\_master(9)

set up master pointer

## NAME

netdev\_set\_master - set up master pointer

## SYNOPSIS

**int netdev\_set\_master(struct net\_device \*** *slave***, struct net\_device \*** *master***);**

## ARGUMENTS

*slave*

slave device

*master*

new master device

## DESCRIPTION

Changes the master device of the slave. Pass **NULL** to break the bonding. The caller must hold the RTNL semaphore. On a failure a negative errno code is returned. On success the reference counts are adjusted and the function returns zero.

## COPYRIGHT
