modalias
Modalias is a Linux kernel mechanism that encodes device identity into a string used to match hardware to compatible driver modules. It serves as a compact, machine-readable identifier that enables automatic driver loading without requiring user intervention.
The modalias string is generated for each device by the kernel and reflects the device’s bus type
In practice, the modalias is exposed in sysfs for physical devices, typically under paths like /sys/bus/xxx/devices/yyy/modalias.
Examples of modalias formats illustrate the concept. For a PCI device, a modalias may encode the vendor
Modalias thus enables reliable, automatic driver binding by translating hardware identifiers into actionable module-loading instructions.