Eric S. Raymond wrote:
> Kai Henningsen <[EMAIL PROTECTED]>:
>
>>I think right now, the only halfway reasonable thing is to do what
>>ttyname() does: get the devide number off stat(/), and search it in /dev.
>>(Besides, you can figure out part of the answer - about as much as the
>>autoprober does now - from the major anyway.)
>>
>
> There's a swamp there -- getting from the major device number to the
> right config symbol seems like a long and tortuous process. First you have
> to get from major number to driver, then from driver to config symbol. I
> don'rt thing the metadata for either of these is present in the current
> driver infrastructure.
>
Major number tell you what kind of device is attached: IDE, SCSI,...
(Documentation/devices.txt). From this info, you parse the
/proc/ide , /proc/scsi to see what driver is attached to a particular
device.
giacomo
_______________________________________________
kbuild-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/kbuild-devel