Subject: Re: dev/audiobell.c proposal
To: Lennart Augustsson <>
From: Greg A. Woods <>
List: tech-kern
Date: 01/12/2004 01:09:28
[ On Monday, January 12, 2004 at 00:06:58 (+0100), Lennart Augustsson wrote: ]
> Subject: Re: dev/audiobell.c proposal
> The current device driver arch. makes it very difficult to write
> drivers that support multiple opens.  The problem is that the device
> open routine as called on every opne, but close is only called on the
> last close.  So trying to do book keeping on what's in use is hard.

If that's a problem then you're doing something to the device state in
your close() routine that you should not be doing, and/or you're trying
to do too much through one device file.  You shouldn't need to do that
kind of book keeping inside the driver.

						Greg A. Woods

+1 416 218-0098                  VE3TCP            RoboHack <>
Planix, Inc. <>          Secrets of the Weird <>