On Thu, Jun 16, 2016 at 5:12 AM, John Baldwin <j...@freebsd.org> wrote: > On Wednesday, June 15, 2016 09:01:53 PM John Baldwin wrote: >> Author: jhb >> Date: Wed Jun 15 21:01:53 2016 >> New Revision: 301931 >> URL: https://svnweb.freebsd.org/changeset/base/301931 >> >> Log: >> 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 components >> (direction, group, number, and length). In addition, if a command has a >> known name it is output via sysdecode_ioctlname(). >> >> Reviewed by: kib, emaste, avg >> Approved by: re (gjb) >> Differential Revision: https://reviews.freebsd.org/D6851 > > I've had a version of this in a private tree of utilities for several years. > I added the sysdecode stuff yesterday though now that it's easy to do so. > > Sample output: > > % ./decioctl 0xc4d01902 0xc4e01902 0x4004667f > command : dir group num len name > 0xc4d01902: INOUT 0x19 2 1232 CAMIOCOMMAND > 0xc4e01902: INOUT 0x19 2 1248 > 0x4004667f: OUT 'f' 127 4 FIONREAD
Haha, very nice :D -- Tomorrow Will Never Die _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"