Issues a control command to an open device.
#include <sys/types.h> #include <sys/errno.h> #include <fcntl.h> int fp_ioctlx (fp, cmd, arg, ext, flags, retval) struct file *fp; unsigned long cmd; caddr_t arg; ext_t ext; unsigned long flags; long *retval;
The fp_ioctlx kernel service is an internal interface to the function provided by the ioctl subroutine.
The fp_ioctlx kernel service issues a control command to an open device. Some drivers need the return value that is returned by the kernel service if there is no error. This value is not available through the fp_ioctl kernel service. The fp_ioctlx kernel service allows this data to be passed.
The fp_ioctlx kernel service can be called only from the process environment.
Upon successful completion, the fp_ioctlx kernel service returns 0. If unsuccessful, one of the values from the /usr/include/sys/errno.h file is returned. The ioctl subroutine contains valid errno values. This value will be stored in the retval parameter.
The ioctl, ioctlx, ioctl32, or ioctl32x Subroutine in AIX 5L Version 5.2 Technical Reference: Base Operating System and Extensions Volume 1.