Provided by: linux-doc-2.6.15_2.6.15-23.39_all bug

NAME

       unregister_netdevice - remove device from the kernel

SYNOPSIS

       int unregister_netdevice  (struct net_device * dev);

ARGUMENTS

       dev    device

DESCRIPTION

       This  function  shuts  down  a device interface and removes it from the
       kernel tables. On success 0 is returned, on a failure a negative  errno
       code is returned.

       Callers  must  hold  the rtnl semaphore. You may want unregister_netdev
       instead of this.