mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Erin Teran" <erin_teran@linuxmail.org>
To: linux-kernel@vger.kernel.org
Cc: postme1@gmx.net, "USB list" <linux-usb@vger.kernel.org>,
	"Alan Stern" <stern@rowland.harvard.edu>
Subject: Re: USB gadget problem with close of a gadgetfs device
Date: Fri, 13 Feb 2009 16:33:57 +0800	[thread overview]
Message-ID: <20090213083357.7F3B9446D8@ws5-1.us4.outblaze.com> (raw)

Hello,

I couldnt find an answer to my question in the archive or the kernel documentation.
I'm new to Linux and the LKML so please point me in the right direction if the question is misplaced here.

I have a problem while using driver/usb/gadget/gadgetfs
Sometimes I cant reopen the device propperly. I get an -EBUSY.
Using atom_read(&fd->f_count) and printk() in inode.c dev_open I found out that the count is 1 when the failure occurs.
I checked several times if all fd I opened where closed, and they are.

Therefore I'm kinda lost here:
Q: Is f_count only increased after the dev_open returned success?
Q: Does poll() - which I use in my app - duplicate a fd and increase f_count?
Q: Is there a known issue with poll() and the pthread lib?
Q: What happens when I terminate a thread - pthread_cancel() - which is currently in a poll() call?

Thank you,
Erin



=
Listen & Play Mp3 Songs Completely Free
Listen & Play Online Mp3 Song Completely Free MUSIC ARTICLES AND MORE.
http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=f51d2a53b77b9b8d7c5fcbd5e19676ba


-- 
Powered by Outblaze

                 reply	other threads:[~2009-02-13  8:57 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20090213083357.7F3B9446D8@ws5-1.us4.outblaze.com \
    --to=erin_teran@linuxmail.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=postme1@gmx.net \
    --cc=stern@rowland.harvard.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®