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. See the comment at the
end of Space.c for details about the locking. You may want
unregister_netdev
instead of this.