Re: Upcall implementation in Linux

From: Alan Cox
Date: Fri Aug 11 2006 - 06:18:51 EST


Ar Gwe, 2006-08-11 am 12:13 +0800, ysgrifennodd Hsung-Pin Chang:
> Dear all,
>
> Recently, I need to use upcalls in Linux to actively and
> promptly inform
> the user applications once an kernel event is occurred.
> However, I have some questions about upcall implementation.
> First, the user handler must be "pinned" into memory to
> prevent paging out.

Linux intentionally and deliberately does not support kernel calls into
user space. It leads to very difficult locking problems amongst other
things.

Instead we either send asynchronous events (signal/netlink/..) or we
arrange that a system call returns when the event happens so the user
process resumes.

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