Re: upcalls from kernel code to user space daemons

From: Bernd Petrovitsch
Date: Mon Jun 14 2004 - 17:10:48 EST


On Mon, 2004-06-14 at 23:57, Chris Friesen wrote:
> Oliver Neukum wrote:
>
> > > userspace daemon loops on ioctl()
> > > kernel portion of ioctl call goes to sleep until something to do
> > > when needed, fill in data and return to userspace
> > > userspace does stuff, then passes data back down via ioctl()
> > > ioctl() puts userspace back to sleep and continues on with other work
> >
> > You could just as well implement an ordinary read()
>
> Not quite. The userspace is passing data down as well. I don't know how you'd
> do that with read().

For this you use write().

Bernd
--
Firmix Software GmbH http://www.firmix.at/
mobil: +43 664 4416156 fax: +43 1 7890849-55
Embedded Linux Development and Services


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/