FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-11-2010, 09:23 PM
 
Default output from udevadm

The following short transcript is from adapting the udevadm
invocation in http://wiki.debian.org/udev to investigate
1394 support in my Squeeze system. Two questions.

* What exactly is meant by "device specified by the devpath" in
the output? According to the udevadm man page, devpath is
the value assigned to --path; but that parameter is not present
in the command below. No devpath is specified.

* What exactly is '/class/ieee1394_protocol/raw1394'?
/class is not a directory in the filesystem and /dev/raw1394
is the only 1394 device I've found.

Thanks for any ideas, ... Peter E.

======= transcript=======
joule:/dev# udevadm info --name=/dev/raw1394 --attribute-walk

Udevinfo starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.

looking at device '/class/ieee1394_protocol/raw1394':
KERNEL=="raw1394"
SUBSYSTEM=="ieee1394_protocol"
DRIVER==""

joule:/dev# ls /class
ls: cannot access /class: No such file or directory
joule:/dev#
======= transcript=======

--
Carnot is down, waiting for installation of NetBSD.
Personal site works; http://members.shaw.ca/peasthope/ .


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 171056555.58853.40157.@heaviside.invalid">http://lists.debian.org/171056555.58853.40157.@heaviside.invalid
 
Old 07-12-2010, 07:43 AM
Tom H
 
Default output from udevadm

On Sun, Jul 11, 2010 at 5:23 PM, <peasthope@shaw.ca> wrote:
> The following short transcript is from adapting the udevadm
> invocation in http://wiki.debian.org/udev to investigate
> 1394 support in my Squeeze system. *Two questions.
>
> * What exactly is meant by "device specified by the devpath" in
> *the output? *According to the udevadm man page, devpath is
> *the value assigned to --path; *but that parameter is not present
> *in the command below. *No devpath is specified.
>
> * What exactly is '/class/ieee1394_protocol/raw1394'?
> */class is not a directory in the filesystem and /dev/raw1394
> *is the only 1394 device I've found.
>
> ======= transcript=======
> joule:/dev# udevadm info --name=/dev/raw1394 --attribute-walk
>
> Udevinfo starts with the device specified by the devpath and then
> walks up the chain of parent devices. It prints for every device
> found, all possible attributes in the udev rules key format.
> A rule to match, can be composed by the attributes of the device
> and the attributes from one single parent device.
>
> *looking at device '/class/ieee1394_protocol/raw1394':
> * *KERNEL=="raw1394"
> * *SUBSYSTEM=="ieee1394_protocol"
> * *DRIVER==""
>
> joule:/dev# ls /class
> ls: cannot access /class: No such file or directory
> joule:/dev#

>From a filesystem perspective, there is an assumed /sys "in front of" /class/...

devpath is the /class/... equivalent of /dev/...

You can get it with
udevadm info --query=path --name=/dev/...


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTim6J_AnNhnMphIowk1jVwkATG6OMgX8XlTKS4hx@mail .gmail.com">http://lists.debian.org/AANLkTim6J_AnNhnMphIowk1jVwkATG6OMgX8XlTKS4hx@mail .gmail.com
 
Old 07-12-2010, 02:58 PM
Camaleón
 
Default output from udevadm

On Sun, 11 Jul 2010 14:23:37 -0700, peasthope wrote:

> The following short transcript is from adapting the udevadm invocation
> in http://wiki.debian.org/udev to investigate 1394 support in my Squeeze
> system. Two questions.
>
> * What exactly is meant by "device specified by the devpath" in
> the output? According to the udevadm man page, devpath is the value
> assigned to --path; but that parameter is not present in the command
> below. No devpath is specified.

I think it refers to a possible value/option you can define using
modifiers.

As per "man udevinfo":

***
--path=devpath
The devpath of the device to query.
***

Being udev a hierarchical database, I guess this option allows the user
to define a "starting point" to make the query.

> * What exactly is '/class/ieee1394_protocol/raw1394'?
> /class is not a directory in the filesystem and /dev/raw1394 is the
> only 1394 device I've found.

Dunno what it is, but it seems to be located under "/sys/class/*"

stt008:~# ls -l /sys/class
total 0
drwxr-xr-x 2 root root 0 jul 12 07:43 backlight
drwxr-xr-x 31 root root 0 jul 12 07:43 bdi
drwxr-xr-x 5 root root 0 jul 12 07:43 bsg
drwxr-xr-x 2 root root 0 jul 12 07:43 dma
drwxr-xr-x 3 root root 0 jul 12 07:43 dmi
drwxr-xr-x 4 root root 0 jul 12 07:43 graphics
drwxr-xr-x 2 root root 0 jul 12 07:43 hwmon
drwxr-xr-x 9 root root 0 jul 12 07:44 i2c-adapter
drwxr-xr-x 3 root root 0 jul 12 07:43 ide_port
drwxr-xr-x 2 root root 0 jul 12 07:43 ieee1394
drwxr-xr-x 4 root root 0 jul 12 07:43 ieee1394_host
drwxr-xr-x 4 root root 0 jul 12 07:43 ieee1394_node
drwxr-xr-x 2 root root 0 jul 12 07:43 ieee1394_protocol
drwxr-xr-x 9 root root 0 jul 12 07:43 input
drwxr-xr-x 11 root root 0 jul 12 07:43 mem
drwxr-xr-x 9 root root 0 jul 12 07:43 misc
drwxr-xr-x 5 root root 0 jul 12 07:43 net
drwxr-xr-x 10 root root 0 jul 12 07:43 pci_bus
drwxr-xr-x 2 root root 0 jul 12 07:43 power_supply
drwxr-xr-x 3 root root 0 jul 12 07:43 ppdev
drwxr-xr-x 3 root root 0 jul 12 07:43 printer
drwxr-xr-x 3 root root 0 jul 12 07:43 rtc
drwxr-xr-x 5 root root 0 jul 12 07:43 scsi_device
drwxr-xr-x 4 root root 0 jul 12 07:43 scsi_disk
drwxr-xr-x 5 root root 0 jul 12 07:43 scsi_generic
drwxr-xr-x 8 root root 0 jul 12 07:43 scsi_host
drwxr-xr-x 8 root root 0 jul 12 07:43 sound
drwxr-xr-x 2 root root 0 jul 12 07:43 spi_master
drwxr-xr-x 6 root root 0 jul 12 07:43 thermal
drwxr-xr-x 73 root root 0 jul 12 07:43 tty
drwxr-xr-x 10 root root 0 jul 12 07:43 usb_device
drwxr-xr-x 18 root root 0 jul 12 07:43 usb_endpoint
drwxr-xr-x 10 root root 0 jul 12 07:43 usb_host
drwxr-xr-x 11 root root 0 jul 12 07:43 usbmon
drwxr-xr-x 18 root root 0 jul 12 07:44 vc
drwxr-xr-x 4 root root 0 jul 12 07:43 vtconsole

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: pan.2010.07.12.14.58.03@gmail.com">http://lists.debian.org/pan.2010.07.12.14.58.03@gmail.com
 

Thread Tools




All times are GMT. The time now is 08:31 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org