tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: New tools proposal: ioctlname and ioctldecode



In article <0fd513f7-6f0c-6ed1-2119-6ce5313d4a39%gmx.com@localhost>,
Kamil Rytarowski  <n54%gmx.com@localhost> wrote:
>I propose to add two new tools:
>
> - ioctlname
> - ioctldecode

I would call it ioctlprint and have:

ioctlprint [-f <format>] <name>|<expr>|<value> arg....

for the input arg can be:
    name = TIOCFOO
    expr = _IO?('x', y, z)
    value = 0xfoobee

The format can be contain %e %n %v which expand to what you
think and defaults to:

"%n %e %v\n"

christos



Home | Main Index | Thread Index | Old Index