Re: kill_fasync usage

Manfred Spraul (manfred@colorfullife.com)
Tue, 04 Mar 2003 22:02:14 +0100


SA wrote:

>I wnat to use kill_fasync(struct fasync_struct *PTR,...) to notify userland of
>events. Can I just call kill_fasync regardless of the state of PTR or does
>PTR actually have to point to something valid.
>
>
kill_fasync receives the _address_ of the variable that contains the
list of processes that need notifications. It must not be NULL. (I
assume you look at 2.4 or 2.5 - 2.2 had a different interface)

Check linux/drivers/char/busmouse.c for an example, the interface is
simple: call fasync_helper to register and kill_fasync for the actual
notification.

--
    Manfred

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