All of lore.kernel.org
 help / color / mirror / Atom feed
From: greg@kroah.com (Greg KH)
To: kernelnewbies@lists.kernelnewbies.org
Subject: read / write / close sync for device files
Date: Tue, 5 Jul 2011 06:34:40 -0700	[thread overview]
Message-ID: <20110705133440.GA8261@kroah.com> (raw)
In-Reply-To: <BANLkTikgFno9C-LJnu1SQ+Kg6pGoLQNeCg@mail.gmail.com>

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

      reply	other threads:[~2011-07-05 13:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-04 12:43 read / write / close sync for device files Amit Nagal
2011-07-04 16:10 ` Greg KH
2011-07-05  7:07   ` Amit Nagal
2011-07-05 13:34     ` Greg KH [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110705133440.GA8261@kroah.com \
    --to=greg@kroah.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.