Re: read / write / close sync for device files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jul 05, 2011 at 12:37:26PM +0530, Amit Nagal wrote:
> so do the usb-core layers or VFS layers maintains some locks that take
> care that if read / write is in progress
> and application calls close() , corresponding release() method in usb
> driver will be called only upon completion
> of all read / writes ?

No, release will be called when all of the userspace file handles call
close(), and not before.

hope this helps,

greg k-h

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux