acpi_device_modalias(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the struct device to get the ACPI device node. It's giving β€œwhere’s the ACPI node?” energy.
  • buf β€” the buffer to save pnp_modalias and of_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:


xoxo bestie πŸ’… source/version is ./drivers/acpi, dated October 2026, and the page is acpi_device_modalias(9). slay. πŸŽ€βœ¨

πŸ“¦ where this page comes from