I'll note, lsblk <i>can</i> return a heck of a lot more data than it does by default (and nvme drives show up there). lsblk -H will list for your system, and you can specify columns. You can also adjust output.<p>I guess with this in mind, I'm curious how this is different?
I always wanted the /dev/zero character device driver, which you can map into memory to clear it, or use as an infinite source of nulls, to use the minor node number as the value that got mapped into memory or produced, so you could make an infinite source of beeps with:<p>mknod /dev/seven c 1 7<p>I wonder what would happen if you made a /dev/seven device in your http servers public_html directory? Would it dutifully serve it up?<p>Better yet, support for utf-8 unicode, so you can make an infinite source of poo emojis.<p>The "Everything Is A File" philosophy should be taken to its logical conclusion.
Rewrote most of the functionality in C as an exercise<p><a href="https://gist.github.com/grahameger/2507019334f07036f84080a87684f4b3" rel="nofollow">https://gist.github.com/grahameger/2507019334f07036f84080a87...</a>