lkml.org 
[lkml]   [2003]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: kill_fasync usage
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/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.097 / U:2.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site