Gets the device number or channel number for a device.
The fp_getdevno service finds the device number and channel number for an open device that is associated with the file pointer specified by the fp parameter. If the value of either devp or chanp parameter is null, this service does not attempt to return any value for the argument.
The fp_getdevno kernel service can be called from the process environment only.
0 | Indicates a successful operation. |
EINVAL | Indicates that the pointer specified by the fp parameter does not point to a file structure for an open device. |
The fp_getdevno kernel service is part of Base Operating System (BOS) Runtime.
Logical File System Kernel Services in AIX Version 4.3 Kernel Extensions and Device Support Programming Concepts.