Closes a communications I/O device handler.
#include <sys/types.h> #include <sys/errno.h> #include <aixif/net_if.h>
int net_detach (netfp) struct file *netfp;
netfp | Points to an open file structure obtained from the net_attach kernel service. |
The net_detach kernel service closes the device handler associated with the file pointer specified by the netfp parameter.
The net_detach kernel service can be called from the process environment only.
The net_detach service returns the value it obtains from the fp_close service.
The net_detach kernel service is part of Base Operating System (BOS) Runtime.
The fp_close kernel service, net_attach kernel service.
Network Kernel Services in AIX Kernel Extensions and Device Support Programming Concepts.