create_of_modalias(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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:


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