From: Stefan Schönleitner <dev.c0debabe@gm...> - 2012-06-25 14:36:56
I'm planning to implement a character device proxy service that should
allow to tunnel the device access on one host over the network to
Thus, assuming that on the target machine there is a character device
/dev/something, I would create a 'virtual' /dev/something on the source
Whenever the device is accessed, the access (i.e.
read/write/open/close/ioctl/etc.) is forwarded to the target system over
a network connection.
This would allow me to remotely access any character device on the
target system as if it were a local device.
* Has this ever be done or is it already implemented ?
* Is CUSE the right choice for this ?
I've seen that that recent kernels also support UIO which seems to
offer a similar functionality.
It seems that CUSE is the easier choice.
>From my naive perspective, I would guess that this can be relatively
easy implemented by extending the CUSE example code and adding network
On the other side I would implement a simple network daemon that
performs all the character device operations on the target machine.
Of course this would get more complicated considering security or
multiple machines trying to access the same character device on the
target machine and there are possibly many more things I didn't think
However, for now, a simple straight forward proof-of-concept
implementation would be sufficient for my needs.
Get latest updates about Open Source Projects, Conferences and News.