Retrieves the name of the module just below the stream head.
#include <sys/conf.h> #include <stropts.h>
int ioctl (fildes, command, arg) int fildes, command;
The I_LOOK operation retrieves the name of the module just below the stream head of the stream pointed to by the fildes parameter and places it in a null terminated character string pointed at by the arg parameter. The buffer pointed to by the arg parameter should be at least FMNAMESMZ + 1 bytes long.
If unsuccessful, the errno global variable is set to one of the following values:
|EFAULT||The arg parameter points outside the allocated address space.|
|EINVAL||No module is present in stream.|
This operation is part of STREAMS Kernel Extensions.
The scls command.
The streamio operations.
The I_FIND streamio operation, I_POP streamio operation, I_PUSH streamio operation.
Understanding STREAMS Drivers and Modules in AIX Version 4.3 Communications Programming Concepts.