From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: udevtest: man page unclear
Date: Mon, 20 Mar 2006 00:58:02 +0000 [thread overview]
Message-ID: <20060320005802.GB11927@vrfy.org> (raw)
In-Reply-To: <dvkeef$4ai$4@sea.gmane.org>
On Sun, Mar 19, 2006 at 09:21:23PM +0100, Andreas Jellinghaus wrote:
> in udev 079 the man page reads:
> NAME
> udevtest - simulate a udev run and print the action to the console
>
> SYNOPSIS
> udevtest device-path subsystem
>
> DESCRIPTION
> udevtest simulates a udev run for the given device and prints out the
> name of the node udev would have created, or the name of the network
> interface, that would have been renamend.
>
> well, to my knowledge I can use udev as hotplug, i.e. to run something
> if hardware is added. the manpage does not tell me if it can help in that
> scenario.
From the udev man page:
The following keys can get values assigned:
...
RUN Add a program to the list of programs to be executed for a
specific device.
> also what is device path? what is subsystem? an example would be nice.
> for example: how to run a test for a usb token?
It's the kernel provided path the device in sysfs, the device location
without /sys.
> udevtest /class/usb_device/usbdev3.3 usb
> should be fine I think? is that correct?
If you wan to see what rules are executed for that device, what udev
would do if this event is sent by the kernel, sure.
Kay
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&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
prev parent reply other threads:[~2006-03-20 0:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-19 20:21 udevtest: man page unclear Andreas Jellinghaus
2006-03-20 0:58 ` 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=20060320005802.GB11927@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 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).