.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "UNREGISTER_NETDEVICE" "9" "09 October 2005" "" "" .SH NAME unregister_netdevice \- remove device from the kernel .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int unregister_netdevice (struct net_device * \fIdev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR device .SH "DESCRIPTION" .PP 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. .PP Callers must hold the rtnl semaphore. You may want \fBunregister_netdev\fR instead of this.