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;
Item | Description |
---|---|
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.