Re: Kernelspace to Userspace message passing

From: Pete Zaitcev (zaitcev_at_yahoo.com)
Date: 07/14/03


Date: Mon, 14 Jul 2003 17:33:57 GMT

On Mon, 14 Jul 2003 13:03:32 +0200, Johnny Choque wrote:

> Now one alternative would be that the app polls the kernel
> using IOCTLs
> to see if any message is waiting. How can I avoid that and send a message
> directly to userspace from kernelspace as in a callback or signal?

You cannot. Fork a thread and make it blocking in the
polling ioctl to avoid spinning.

-- Pete