acpi_device_remove_files(9)
π
acpi_device_remove_files (9) β Kernel API Manual β¨
okay so bestie, welcome to the Kernel API Manual, and today's main character is acpi_device_remove_files π like yes we're in the kernel, yes we're doing sysfs admin, and yes it's giving cleanup era πΈ
π NAME π
acpi_device_remove_files β removes the sysfs attributes of an ACPI device. literally that's the whole gig, she tears down the files, she's done π«Ά
β¨ SYNOPSIS β¨
void acpi_device_remove_files (struct acpi_device *dev );
no return value, no drama, she just does it and leaves π
(the return type is void, bestie β she's not coming back with receipts)
π¦ ARGUMENTS π¦
devβ the ACPI device object π that's the one, the device whose files we're saying bye to. no cap, that's the only thing you hand her.
π₯ SEE ALSO π₯
like if you're not done snooping around, check these out, all within the kernel file ./drivers/acpi/device_sysfs.c:
create_pnp_modalias(9)create_of_modalias(9)acpi_device_uevent_modalias(9)acpi_device_modalias(9)acpi_device_setup_files(9)
pro tip bestie: acpi_device_setup_files(9) is literally the opposite vibe β she makes the files, this one removes them. they're sisters π iykyk
π the sign-off π
that's the page!! this lil beauty lives over in ./drivers/acpi and she was stamped October 2026 β so yeah, whenever you need to yeet an ACPI device's sysfs attributes, you know exactly who to call π mwah, go slay your cleanup, love u bye π§π
π¦ 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