Re: (Semi-random) thoughts on device tree structure and devfs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Masao Uebayashi
Date: Sunday, March 7, 2010 - 5:09 am

> I don't think this is a problem by itself. With devfs I would normally

Identifying device by id would be useful, but I don't like those are exposed
as path, like /devices/iommu@f,e0000000/sbus@f,e0001000/..., which is too
complicated IMO.

What I'm thinking of is to have a file showing device class specific
information, like disk0.info, which would work like procfs.

	find /dev/mainbus0 -name 'disk*.info' -print | \
	while read f; do
		grep -q 'the-guid-i-am-looking-for' $f && echo found: $f
	done

Masao

-- 
Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
(Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sun Mar 7, 2:43 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Sun Mar 7, 3:12 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sun Mar 7, 5:09 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Sun Mar 7, 9:31 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Sun Mar 7, 9:41 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Mon Mar 8, 9:59 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 8:25 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 8:48 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 9:35 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 9:43 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 10:46 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 11:41 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Tue Mar 9, 11:57 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Tue Mar 9, 12:01 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 12:23 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Tue Mar 9, 12:45 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Tue Mar 9, 12:51 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 12:55 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Thor Lancelot Simon, (Tue Mar 9, 2:45 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 5:57 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 6:06 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 6:36 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 6:39 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Wed Mar 10, 6:46 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Wed Mar 10, 6:50 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Wed Mar 10, 7:41 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Wed Mar 10, 1:53 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Johnny Billquist, (Thu Mar 11, 7:32 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Joerg Sonnenberger, (Thu Mar 11, 10:18 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Thu Mar 11, 11:37 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eric Haszlakiewicz, (Thu Mar 11, 11:42 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Quentin Garnier, (Thu Mar 11, 11:47 am)
Re: (Semi-random) thoughts on device tree structure and devfs, Eduardo Horvath, (Thu Mar 11, 12:06 pm)
Re: (Semi-random) thoughts on device tree structure and devfs , Matthias Drochner, (Thu Mar 11, 1:45 pm)
Re: (Semi-random) thoughts on device tree structure and devfs , Matthias Drochner, (Thu Mar 11, 2:24 pm)
Re: (Semi-random) thoughts on device tree structure and devfs , Matthias Drochner, (Fri Mar 12, 1:20 pm)
Re: (Semi-random) thoughts on device tree structure and devfs , Matthias Drochner, (Fri Mar 12, 4:37 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 10:51 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:00 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:08 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:11 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:16 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:25 pm)
Re: (Semi-random) thoughts on device tree structure and devfs, Masao Uebayashi, (Sat Mar 13, 11:33 pm)