udev & modalias files
bjorn at mork.no
Fri Jun 3 14:50:05 EDT 2016
Muni Sekhar <munisekharrms at gmail.com> writes:
> I see lot of modalias files under /sys directory.
> For e.g:
> # cat /sys/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/modalias
> I would like to know which part of the kernel module creates sysfs
> modalias file?
lots of different places. Do a "git grep modalias drivers/" to see many
of them. That particular file is created by drivers/pci/pci-sysfs.c
More information about the Kernelnewbies