'\" t .\" Title: dev_change_net_namespace .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DEV_CHANGE_NET_NAMES" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "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_change_net_namespace \- move device to different nethost namespace .SH "SYNOPSIS" .HP \w'int\ dev_change_net_namespace('u .BI "int dev_change_net_namespace(struct\ net_device\ *\ " "dev" ", struct\ net\ *\ " "net" ", const\ char\ *\ " "pat" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 device .RE .PP \fInet\fR .RS 4 network namespace .RE .PP \fIpat\fR .RS 4 If not NULL name pattern to try if the current device name is already taken in the destination network namespace\&. .RE .SH "DESCRIPTION" .PP This function shuts down a device interface and moves it to a new network namespace\&. On success 0 is returned, on a failure a netagive errno code is returned\&. .PP Callers must hold the rtnl semaphore\&. .SH "COPYRIGHT" .br