Re: Moving fasync_struct into struct file?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 20 Feb 2002 02:04:06 +0000 (GMT)


> > We already clean up fasync structures on close,
> We do not.

Then fix your driver. All the drivers I looked at do stuff like this...
which seems to do the job nicely

static int close_pad(struct inode * inode, struct file * file)
{
lock_kernel();
fasync_pad(-1, file, 0);
if (!--active)
outb(0x30, current_params.io+2); /* switch off digitiser */
unlock_kernel();
return 0;
}
-
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/