bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Some questions about the translator that helps open the device


From: Zheng Da
Subject: Some questions about the translator that helps open the device
Date: Sat, 2 Aug 2008 22:57:48 +0800

Hello everyone,

I'm going to write a translator that helps other programs open the underlying device. So other programs can open the device through a filesystem location. The program can open the eth0 interface by openning the /dev/eth0, for example.
One of the reasons to create the translator is that this translator can manage access permissions. and this translator can make things more convenient in some cases.
antrik suggested two solutions to do the work:
1. to introduce some new RPC explicitely for opening the underlying device. It's similar to the device_open() call, but it doesn't take any device name.
2. to proxy the standard device_open() call, but accepting only one fixed device name.
Which one, do you think, is better? or are there any better ideas?

Another question is what the name of the translator should be.
antrik also suggested several ones:
devopen, devnode, trivdev, devconn.
any ideas?

Best regards,
Zheng Da

reply via email to

[Prev in Thread] Current Thread [Next in Thread]