Comment by DonHopkins
7 years ago
I always wanted /dev/zero, which is used to mmap zeros into memory, to be more general and use the device minor number to define which byte gets mapped, so you could mknod /dev/seven with a minor number of 7, to provide an infinite source of beeps!
Unfortunately, device minor numbers don't go high enough to support /dev/U+1F4A9, which is an infinite stream of ...
Don't they have a special purpose USB keyboard with one big easy to press squishy sculpted and iconically colored button that generates just that character?
Autorepeat on a keyboard just can't compare the the computational power behind /dev/zero!
2 replies →
If you really want this and do not have to be bothered about portability, just write a kernel module and load it. It will be about 40-60 lines of code.
You can also open `<(yes '\007')` or something, or use `mkfifo` if you don't want to rely on bash.
Not as fun as a kernel module, though :-)
If I had my way you'd be able to define new kernel modules by downloading a few lines of PostScript. ;) Ok, JavaScript these days. But you know what I mean.
6 replies →