acpi_device_modalias(9)
π acpi_device_modalias(9) π
okay so welcome to the Kernel API Manual page for acpi_device_modalias(9), bestie. This is the whole vibe: a kernel API function that deals with the modalias sysfs attribute for ACPI-enumerated devices. Keep your struct device * close and your buffer closer. π
πΈ NAME πΈ
acpi_device_modalias β modalias sysfs attribute for ACPI-enumerated devices.
β¨ SYNOPSIS β¨
int acpi_device_modalias (struct device *dev , char *buf , int size );
That's the whole signature, no cap.
π«Ά ARGUMENTS π«Ά
devβ thestruct deviceto get the ACPI device node. It's giving βwhereβs the ACPI node?β energy.bufβ the buffer to savepnp_modaliasandof_modalias. Bestie, this is where the good stuff goes.sizeβ size of buffer. Yes, the size of the buffer, and yes it matters.
π DESCRIPTION π
Create the modalias sysfs attribute for ACPI-enumerated devices. That's the main character job, fr fr.
Why does this exist? Because other buses do not support ACPI HIDs & CIDs. So, e.g. for a device with hid:IBM0001 and cid:ACPI0001 you get: "acpi:IBM0001:ACPI0001". The way that string comes together is honestly iconic. β¨
π SEE ALSO π
Go look at these, bestie:
- Kernel file
./drivers/acpi/device_sysfs.c create_pnp_modalias(9)create_of_modalias(9)acpi_device_uevent_modalias(9)acpi_device_setup_files(9)acpi_device_remove_files(9)
xoxo bestie π
source/version is ./drivers/acpi, dated October 2026, and the page is acpi_device_modalias(9). slay. πβ¨
π¦ 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