bug-hurd
[Top][All Lists]
Advanced

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

Re: Some questions about the translator that helps open the device


From: Michael Casadevall
Subject: Re: Some questions about the translator that helps open the device
Date: Wed, 6 Aug 2008 00:22:55 -0400

Maybe this falls under the "I'm an idiot" category, but isn't netio essentially the same as stream io? You open a socket, read in contents from the stream, it blocks if its too full, etc. The entropy kernel driver used the streamio API internally. It might be easier/cleaner to extend the streamio translator to simply be able to handle network sockets.
On Tue, Aug 5, 2008 at 9:02 PM, Samuel Thibault <samuel.thibault@ens-lyon.org> wrote:
Hello,

Zheng Da, le Sat 02 Aug 2008 22:57:48 +0800, a écrit :
> I'm going to write a translator that helps other programs open the underlying
> device.

Mmm, there are already two: storeio (for disks) and streamio (for
character-based devices).

> 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.

Then I guess we could have a netio? (for packet-based devices)

Samuel




reply via email to

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