.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "NETDEV_SET_MASTER" "" "06 October 2005" "" ""
.SH NAME
netdev_set_master \- set up master/slave pair
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int netdev_set_master (struct net_device * \fIslave\fB, struct net_device * \fImaster\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIslave\fB\fR
slave device
.TP
\fB\fImaster\fB\fR
new master device
.SH "DESCRIPTION"
.PP
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, RTM_NEWLINK is sent to the routing socket and the
function returns zero.