Hi,

On Wed, Nov 12, 2025 at 03:40:57AM +0000, Damien Zammit wrote:

> We need to port kms and drm server from the Linux kernel as a userspace 
> translator

Strictly speaking, DRM is meant to be portable -- i.e. other systems can
implement their own variants of the system hooks, while the rest should
just work.

Having said that, I know that at least some of the BSDs found it easier
to actually port the Linux implementation rather than maintaining their
own. On the other hand, with a Hurd user space implementation presumably
being more distinct, it *might* be easier to create a custom one? Not
sure...

> [...] that implements the DRM ioctl api so that libdrm can plug into it.

I don't believe we actually need ioctl emulation here. While I'm not
familiar with the specifics, I presume that the whole point of libdrm is
abstracting the kernel interface. We can just design a "native" Hurd RPC
interface, and use that through a separate libdrm backend. (Or perhaps an
entirely custom libdrm implementing the same API...)

That's what I did when porting KGI. (An earlier attempt to add
DRM/KMS-like functionality to Linux, that failed to gain upstream
approval...)

-antrik-

Reply via email to