[Toybox] [PATCH] lsof: explicit size for device major:minor buffer.

Rob Landley rob at landley.net
Sun Sep 26 13:34:10 PDT 2021


On 9/25/21 8:55 PM, enh via Toybox wrote:
> These are 2 hex digits each with a ':' between them in the kernel.

Major has been 12 bits and minor 20 bits since 2003. (Git annotate on the header
says https://github.com/mpe/linux-fullhistory/commit/7ae6a13832a2 .)

So xxx:xxxxx, which is why I used a 10 byte buffer.

Rob



More information about the Toybox mailing list