Query: dev_change_net_namespace
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DEV_CHANGE_NET_NAMES(9) Network device support DEV_CHANGE_NET_NAMES(9)NAMEdev_change_net_namespace - move device to different nethost namespaceSYNOPSISint dev_change_net_namespace(struct net_device * dev, struct net * net, const char * pat);ARGUMENTSdev 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.DESCRIPTIONThis 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.COPYRIGHTKernel Hackers Manual 3.10 June 2014 DEV_CHANGE_NET_NAMES(9)