All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: uDev/ hotplug and modules
Date: Fri, 18 Nov 2005 02:26:20 +0000	[thread overview]
Message-ID: <20051118022620.GA29322@vrfy.org> (raw)
In-Reply-To: <B6AD7C79BC8ECA49A2F11C7B3839BF4902FFF0C0@pdxwin32.pixelworks.com>

On Thu, Nov 17, 2005 at 06:13:43PM -0800, Don Nelke wrote:
> Does udev (075) and hotplug work without loadable modules? 

It should.

> It seems hotplug is working but udevsend is seg-faulting when invoked in
> lieu of the /sbin/hotplug script.

I don't think this happens with a normal kernel. I'm sure someone else
would have noticed it.

> I replaced the call to /sbin/hotplug in the kobject_hotplug function.
> The path was hard-coded in our version. I was thinking this was wrong;
> shouldn't this be using the contents of /proc/sys/kernel/hotplug?

Are you talking about the kernel source? Sure, the event helper is set by
writing to /proc/sys/kernel/hotplug. What the hell is "our version" and
who is doing such a nonsense?

> The object of this effort is to be able to detect when a usb-storage
> device is present on boot-up and to mount the device fs. It seems that
> udev was the answer since it gives a dynamic node creation if the device
> is detected. All a script has to do is check for that node.  Is my
> understanding correct?

You can hook into any event device event the kernel sends. Just match
with a udev rule against device properties the kernel exports and call
a script or program with the RUN key.

Kay


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_idv28&alloc_id\x16845&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

      reply	other threads:[~2005-11-18  2:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-18  2:13 uDev/ hotplug and modules Don Nelke
2005-11-18  2:26 ` Kay Sievers [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=20051118022620.GA29322@vrfy.org \
    --to=kay.sievers@vrfy.org \
    --cc=linux-hotplug@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 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.