Theoretical physicists: Actually...
Theoretical physicists: Actually...
Programmatically, what does the kernel actually do with data sent to /dev/null?
I like to imagine it’s like getting nullified in that olde show ReBoot.
I was also curious, here’s a good answer:
unix.stackexchange.com/…/how-is-dev-null-implemen…
The implementation is:
static ssize_t write_null(struct file *file, const char __user *buf, size_t count, loff_t *ppos) { return count; }