Neat, thanks!
I wonder if a similar approach could be used to move some device drivers out of kernel...
Btw, I did read the sample in segment(3) but I was looking for a real world example.
What I'm trying to understand is not *how* to use devsegment, but *when* to use it.
Which problems is it designed to solve?
Moreover, Zinq's graphics use a very smart approach, but it's specific to 9front evolution of the device with the "fixed" type.
I'm also looking for the general use case, when segments are not used for DMA, as designed in the original Plan9.
Giacomo