lkml.org 
[lkml]   [1998]   [Apr]   [24]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
FromMike Kilburn <>
DateFri, 24 Apr 1998 11:04:43 +0200 (SAST)
SubjectRe: Are file_operations.{open,release} serialized?
> 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

\
 
 \ /
  Last update: 2005-03-22 13:42    [from the cache]
©2003-2008