netdev_set_bond_master(9)

netdev_set_bond_master9

Set up bonding master/slave pair

Usage

int netdev_set_bond_master(struct net_device * slave, struct net_device * master);

Arguments

slave

slave device

master

new master device

Overview

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 RTM_NEWLINK is sent to the routing socket and the function returns zero.

From linux-manual-3.2 3.2.78-1 in Debian 7 (Wheezy). Parsed by carta from the page's man source.