svn commit: r301931 - head/tools/tools/decioctl
Sepherosa Ziehau
sepherosa at gmail.com
Thu Jun 16 01:55:11 UTC 2016
On Thu, Jun 16, 2016 at 5:12 AM, John Baldwin <jhb at 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
More information about the svn-src-all
mailing list