Date: Thu, 16 Jun 2016 09:55:09 +0800 From: Sepherosa Ziehau <sepherosa@gmail.com> To: John Baldwin <jhb@freebsd.org> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r301931 - head/tools/tools/decioctl Message-ID: <CAMOc5cxGs_OH-9XSrudRg_EjRFXwfKgpCgHYWoXH3bVVv-=YRw@mail.gmail.com> In-Reply-To: <13453684.1tT3vNfOUf@ralph.baldwin.cx> References: <201606152101.u5FL1reW011224@repo.freebsd.org> <13453684.1tT3vNfOUf@ralph.baldwin.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jun 16, 2016 at 5:12 AM, John Baldwin <jhb@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMOc5cxGs_OH-9XSrudRg_EjRFXwfKgpCgHYWoXH3bVVv-=YRw>