ibm_slot_from_id(9)
okay bestie, welcome to ibm_slot_from_id(9) from the Kernel API Manual β itβs literally a workaround for bad ibm hardware, and it has main-character energy for such a tiny helper π
β¨
πΈ NAME πΈ
ibm_slot_from_id β workaround for bad ibm hardware π«Ά
β¨ SYNOPSIS β¨
union apci_descriptor * ibm_slot_from_id (int id );
π ARGUMENTS π
idβ the slot number that linux refers to the slot by. Like, this is the number Linux uses to point at the slot, no cap.
π¦ DESCRIPTION π¦
Okay so this method returns the aCPI slot descriptor corresponding to the Linux slot number. That descriptor has info about the aPCI slot id and the attention status β itβs giving very βimportant little descriptorβ energy, fr fr.
bestie, real talk: this descriptor must be freed using kfree when done. No cap, donβt ghost it, donβt leak it β free it when youβre done π
π SEE ALSO π
- Kernel file
./drivers/pci/hotplug/acpiphp_ibm.c ibm_set_attention_status(9)ibm_get_attention_status(9)ibm_handle_events(9)ibm_get_table_from_acpi(9)ibm_read_apci_table(9)ibm_find_acpi_device(9)
xoxo, signing off from ./drivers/pci/hotplug β source/version vibes β dated October 2026, and yes this was ibm_slot_from_id(9) ππ
π¦ 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