Re: Are file_operations.{open,release} serialized?

Mike Kilburn (mike@conexio.co.za)
Fri, 24 Apr 1998 11:04:43 +0200 (SAST)


> that card. I want to ask you if it is safe to increment this
> counter in the device's file_operations.open() routine and to decrement
> in the file_operations.release() routine without any locking

I use atomic_inc and atomic_dec for this sort of thing. Dont forget about
SMP systems.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu