Re: kernel threads and close method in a device driver

From: Andi Kleen (ak@suse.de)
Date: Tue Apr 17 2001 - 16:43:39 EST


On Tue, Apr 17, 2001 at 05:04:28PM -0400, Marty Leisner wrote:
> open device
> do IOCTL (spinning a kernel thread and doing initialization)
>
> There is currently an IOCTL which short-circuits to the close method.
> Turns out it seems necessary to do this IOCTL -- close never gets
> invoked.

Call daemonize() in the kernel thread.

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



This archive was generated by hypermail 2b29 : Mon Apr 23 2001 - 21:00:24 EST