News for hackers. Stuff that matters.
Re:Intro to Low-Level Graphics on Linux by nhaehnle on Thursday August 31, 2017 @03:36AM (#15138760)
Nitpick: DRM files also support mmap(), which is how you map video memory into user space.

To your overall point though: do you think there's something better?

The operations required by user-mode drivers and APIs just don't map well to file operations. On the other hand, creating dedicated syscalls for graphics isn't very attractive either, because many of the ioctls are quite hardware-specific.

Using ioctls is a pragmatic solution, and I doubt you can really come up with something much better, though I'd be interested in being proven wrong.

Re:Intro to Low-Level Graphics on Linux by zokier on Thursday August 31, 2017 @08:15AM (#15139742)
I think something like bus1 might be neat, but admittedly I haven't thought that out very throughly. Of course bus1 is not even in mainline yet, and ioctl apis have been around for decades