Add a tool to decode ioctl commands.
One or more ioctl command values can be passed as arguments on the command
line. For each value, the command is broken down into it's sub parts
(direction, group, number, and length). In addition, if a commands has a
known name it is output via sysdecode_ioctlname().
I've had this in my private repo for a while as a standalone little tool,
but libsysdecode integration is simpler if this is in tools/tools/ perhaps.
Sample output:
./decioctl 0xc4d01902 0xc4e01902
command : dir grp num len name
0xc4d01902: INOUT 25 2 1232 CAMIOCOMMAND
0xc4e01902: INOUT 25 2 1248