1DEV_CHANGE_NET_NAMES(9)     Network device support     DEV_CHANGE_NET_NAMES(9)
2
3
4

NAME

6       dev_change_net_namespace - move device to different nethost namespace
7

SYNOPSIS

9       int dev_change_net_namespace(struct net_device * dev, struct net * net,
10                                    const char * pat);
11

ARGUMENTS

13       dev
14           device
15
16       net
17           network namespace
18
19       pat
20           If not NULL name pattern to try if the current device name is
21           already taken in the destination network namespace.
22

DESCRIPTION

24       This function shuts down a device interface and moves it to a new
25       network namespace. On success 0 is returned, on a failure a netagive
26       errno code is returned.
27
28       Callers must hold the rtnl semaphore.
29
31Kernel Hackers Manual 2.6.         June 2019           DEV_CHANGE_NET_NAMES(9)
Impressum