tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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

> I don't think this is a problem by itself. With devfs I would normally
> expose the symlinks or so based on the label or UUID in the GPT, but
> that functionality is missing.

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, 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


Masao Uebayashi / Tombi Inc. / Tel: +81-90-9141-4635

Home | Main Index | Thread Index | Old Index