Input bits are kept as array of unsigned long and when no bit is set the whole "unsigned long" is represented as single 0 in hotplug events and /proc files. It makes rather hard for user-level programs to guess which bits are set - programs need to know size of kernel long to correctly interpret output. One possibility is attached patch. It makes sure every long is always output in full. Another possibility (I like it more frankly speaking) is to always use 32 bit type for arrays. But it needs more than two lines of trivial changes. regards -andrey PS do I miss something or input /proc functions really never check for buffer overflow?