Re: Kernelspace to Userspace message passing
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.
- [PATCH 3/5] vfio: Add ioctl to re-enable interrupts
... Clearing the INTx disable bit from userspace requires two ioctls, ... we can do it from vfio with only one. ... API and allows us to support non-PCI-2.3 compliant devices. ...
- Re: [RFC] userland swsusp
... Now, I'm not sure about the interface, ioctls are ... I'm curious on the restrictions the userspace part would have to accept. ... OTOH, I don't want to reserve a partition just ... send the line "unsubscribe linux-kernel" in ...
- Re: [RFC] What are the goals for the architecture of an in-kernel IR system?
... userspace than an oops or panic and avoid ... If you're outputing raw pulse/space to userspace, ... The only risk of such logic is if you try to divide by zero. ...
- Re: unregister_ioctl32_conversion and modules. ioctl32 revisited.
... Can avoid conflict of ioctls with the same value since the ... convertor is registered locally. ... send the line "unsubscribe linux-kernel" in ...
- is avoiding compat ioctls possible?
... So for drm KMS we wrote a bunch of ioctls that were 64-bit clean in theory. ... They used uint64_t to represent userspace pointers and userspace ... casted into those and the kernel casts back out and passes it to copy_*_user ... Is there really no way to avoid compat ioctls? ...