linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: iSteve <isteve@rulez.cz>
To: linux-hotplug@vger.kernel.org
Subject: Re: New software: Hotplug2, aimed at early userspace
Date: Mon, 04 Sep 2006 07:48:06 +0000	[thread overview]
Message-ID: <20060904094806.5492c827@silver> (raw)
In-Reply-To: <20060902163017.693cd988@silver>

On Mon, 04 Sep 2006 17:09:47 +1000
Aras Vaichas <arasv@magellan-technology.com> wrote:
> I tested 0.4 and it compiles OK with only 1 warning:
> 
> hotplug2.c: In function `main':
> hotplug2.c:244: warning: 'rules' might be used uninitialized in this function
> 
> I can fix by:
> 
> --- hotplug2.c.orig     2006-09-04 17:06:24.000000000 +1000
> +++ hotplug2.c  2006-09-04 17:06:43.000000000 +1000
> @@ -241,7 +241,7 @@
>         int max_child_c = 20;
>         int dumb = 0;
> 
> -       struct rules_t *rules;
> +       struct rules_t *rules = NULL;
>         struct stat statbuf;
>         void *filemap;
>         int rule_fd;
> 

Thanks, applied for not yet released 0.5.

> I'm currently running udev-080 which doesn't have udevtrigger, so I installed
> the udev-098 version of udevtrigger into my system and your hotplug2 seems to
> work OK. My system is a small embedded system so it isn't that much of a speed
> increase because I don't have many devices, but I can at least tell you that
> I've tested it. :)

Great! I have to emphasize that if you're testing, it's important that you kill
the udevd for the time of testing -- otherwise both will try to handle the
given uevents and therefore both will suffer significant slowdown. During the
benchmark, I've attempted to run hotplug2 while having udevd running, hotplug2
scored a little over 10s (ie. approximately 50% slowdown compared to test
without udevd running).

> regards,
> 
> Aras Vaichas
> 
-- 
 -- iSteve

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x120709&bid&3057&dat\x121642
_______________________________________________
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

  parent reply	other threads:[~2006-09-04  7:48 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-02 14:30 New software: Hotplug2, aimed at early userspace iSteve
2006-09-03 10:16 ` iSteve
2006-09-04  1:04 ` Aras Vaichas
2006-09-04  6:20 ` iSteve
2006-09-04  7:48 ` iSteve [this message]
2006-09-06  1:27 ` Greg KH
2006-09-08 14:00 ` iSteve
2006-09-08 15:22 ` Kay Sievers
2006-09-08 17:17 ` 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=20060904094806.5492c827@silver \
    --to=isteve@rulez.cz \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).