From: Brian Craft <bcboy@thecraftstudio.com>
To: linux-kernel@vger.kernel.org
Subject: delay before open() works
Date: Sat, 14 Sep 2002 09:42:25 -0700 [thread overview]
Message-ID: <20020914094225.A1267@porky.localdomain> (raw)
Hi -- I notice in 2.4 kernels that there's a delay between completion of
"modprobe scanner" and when the device file can be successfully opened. I'm
working on code to power-up devices on-demand.
I've played some with making scripts to work around this, like
heyu turn on scanner
modprobe scanner
sleep 15
xsane
This is pretty gross, since I have to determine the "15" by playing with it,
and I'm sure it will fail some of the time unless I make it reeeeeally long. I
suspected this was some hardware issue -- USB latencies on device discovery, or
boot time for the scanner -- but a friend who isn't attempting to power-up his
devices says he sees the same behavior when just scripting "modprobe". So it
appears there's some fairly long delay in the kernel itself.
Anyone know off-hand what causes this delay, or if there's some way to get
the open() to block?
(btw, I'm not subscribed to the list).
b.c.
next reply other threads:[~2002-09-14 16:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-14 16:42 Brian Craft [this message]
2002-09-15 5:25 ` Brad Hards
2002-09-15 6:10 ` Greg KH
2002-09-15 6:38 ` Brad Hards
2002-09-15 6:49 ` Greg KH
2002-09-15 6:20 ` Greg KH
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=20020914094225.A1267@porky.localdomain \
--to=bcboy@thecraftstudio.com \
--cc=linux-kernel@vger.kernel.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 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®