ioctl() forever?
ioctl() forever?
Posted Jun 8, 2022 18:41 UTC (Wed) by atnot (guest, #124910)In reply to: ioctl() forever? by tau
Parent article: ioctl() forever?
I don't remember who said this, but the lesson should not have been "everything is a file" being good, but "everything is a file descriptor" being good. There is great value in having a unified way of representing kernel resources and associated access capabilities, one that can easily be shared between subsystems and passed between processes. But the part where you usually need to obtain those file descriptors by painfully funneling everything through hundreds of snprintf() and open() calls on hardcoded paths isn't actually that valuable. In fact it often only undermines those valuable properties.
