Skip to content

Make cross-referencing values easier with hex representations #21

@oldgalileo

Description

@oldgalileo

Though stylistic and not critical, it's a bit more difficult to find values when cross referencing against the Linux kernel when you also need to do a decimal<->hex conversion. Take:

https://github.com/jmesmon/ioctl/blob/508702e39a6c4b44daf1f402cc59739ddcab64da/ioctls/src/platform/linux-generated-x86_64.rs#L461

Here's the corresponding kernel def for reference:

https://elixir.bootlin.com/linux/v4.15.18/source/include/uapi/linux/sockios.h#L110

This would likely be better expressed as:

ioctl!(none siocadddlci with 0x89u8, 0x80u8);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions