Updated: 2022/Sep/29

Please read Privacy Policy. It's for your privacy.

IOCTLPRINT(1)               General Commands Manual              IOCTLPRINT(1)

     ioctlprint - display descriptive ioctl value

     ioctlprint [-l] [-e emulation] [-f format] [arg ...]

     The ioctlprint utility displays information about the file ioctl
     operation pointed to by one or more arg arguments.  The argument can
     either be an ioctl(2) symbolic name or the ioctl value.

     The options are as follows:

     -e emulation  If an emulation of a process is unknown, interpret system
                   call maps assuming the named emulation instead of default

     -f format     The argument is a printf(3) style format string that allows
                   customization of ioctlprint's output.

                   The following conversion characters can be used:

                   %E         Symbolic decoded ioctl string.

                   %e         Decoded ioctl string with hex values.

                   %n         Descriptive ioctl operation name.

                   %x         Hexadecimal ioctl number.

                   %o         Octal ioctl number.

                   %d or %i   Decimal ioctl number.

                   The default format is:

                         "%n %e %x\n"

     -l            List all known ioctl(2) requests.

     kdump(1), ktrace(1)

     The ioctlprint command first appeared in NetBSD 10.

     Kamil Rytarowski <kamil@NetBSD.org>

NetBSD 9.99                      April 2, 2020                     NetBSD 9.99