create_of_modalias(9)
π NAME π
okay so this is the Kernel API Manual page for create_of_modalias(9), and the whole point is that it Creates DT compatible string for modalias and uevent. that's it, that's the job, and it ate. β¨
β¨ SYNOPSIS β¨
int create_of_modalias (const struct acpi_device *acpi_dev , char *modalias , int size );
π ARGUMENTS π
acpi_devβ ACPI device object. literally the device bestie. π«Άmodaliasβ Buffer to print into. πsizeβ Size of the buffer. π
πΈ DESCRIPTION πΈ
so the function exposes the DT compatible modalias as of:NnameTCcompatible. π
that's the string format, no cap.
bestie, real talk: this function should only be called for devices having ACPI_DT_NAMESPACE_HID in their list of ACPI/PNP IDs. that's the rule. don't be out here calling it on random devices, okay? π
π¦ SEE ALSO π¦
the kernel file is ./drivers/acpi/device_sysfs.c, and it's giving related-function energy. go check out:
create_pnp_modalias(9)acpi_device_uevent_modalias(9)acpi_device_modalias(9)acpi_device_setup_files(9)acpi_device_remove_files(9)
mwah π β the source/version is ./drivers/acpi, dated October 2026, and the page is create_of_modalias(9). byeee, slay your modalias journey π«Άπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms