Rechercher une page de manuel
dev_change_net_namespace
Langue: en
Version: October 2010 (fedora - 01/12/10)
Section: 9 (Appels noyau Linux)
NAME
dev_change_net_namespace - move device to different nethost namespaceSYNOPSIS
- int dev_change_net_namespace(struct net_device * dev, struct net * net, const char * pat);
ARGUMENTS
dev
- device
net
- network namespace
pat
- If not NULL name pattern to try if the current device name is already taken in the destination network namespace.
DESCRIPTION
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.
Callers must hold the rtnl semaphore.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre