[lkml]   [2003]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
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


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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