Port-arm archive

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

Re: UART question



>>> The benefit of having only present devices under /dev is just
>>> immense!
>> It is?  What is the benefit?  [...]
> What's the benefit of providing accurate information on the system?

Why would you look at /dev for that?

I would look in /var/run/dmesg.boot.  That also provides more detailed
information; for example, having wd0* in /dev/ doesn't tell you whether
it's behind a wdc at pcmcia or an ahcisata at pci or a wdc at isa or
what; dmesg does, and also lists things, like network interfaces, that
don't have /dev nodes at all.

If I had a non-human-layer use for that information, I'd be inclined to
write an autoconffs or some such that exports the autoconf device tree
to userland.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index