ibm_read_apci_table(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ibm_read_apci_table(9) πŸ’…

okay bestie, welcome to the Kernel API Manual β€” this page is all about ibm_read_apci_table, the callback for the sysfs apci_table file. iconic little sysfs reader behavior, honestly. πŸŽ€

✨ NAME ✨

ibm_read_apci_table β€” callback for the sysfs apci_table file.

πŸŽ€ SYNOPSIS πŸŽ€

ssize_t ibm_read_apci_table (struct file *filp , struct kobject *kobj ,
       const struct bin_attribute *bin_attr , char *buffer , loff_t pos ,
       size_t size );

🌸 ARGUMENTS 🌸

  • filp β€” the open sysfs file, obvi.
  • kobj β€” the kobject this binary attribute is a part of.
  • bin_attr β€” the struct bin_attribute for this file.
  • buffer β€” the kernel space buffer to fill. fill it, bestie.
  • pos β€” the offset into the file.
  • size β€” the number of bytes requested.

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this gets registered with sysfs as the reader callback to be executed when /sys/bus/pci/slots/apci_table gets read. main character callback energy, truly.

Since we don't get notified on open and close for this file, things get really tricky here... our solution is to only allow reading the table in all at once. that's the whole move. 😭

πŸ’œ SEE ALSO πŸ’œ

The kernel file is ./drivers/pci/hotplug/acpiphp_ibm.c, and the whole crew is:


mwah πŸ’‹ β€” source/version: ./drivers/pci/hotplug, date: October 2026. periodt, bestie 🫢

πŸ“¦ where this page comes from