is_php_dn(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, this is is_php_dn(9) from the Kernel API Manual, and it's giving β€œtiny helper function with one very specific job” energy. Let's get into it πŸ’…βœ¨


πŸ’– NAME πŸ’–

is_php_dn β€” return 1 if this is a hotpluggable pci slot, else 0 πŸŽ€


✨ SYNOPSIS ✨

int is_php_dn (struct device_node *dn , const __be32 **indexes , const __be32 **names , const __be32 **types , const __be32 **power_domains );

🫢 ARGUMENTS 🫢

  • dn β€” target device_node πŸ‘‘
  • indexes β€” passed to get_children_props 🧚
  • names β€” passed to get_children_props πŸ¦‹
  • types β€” returned from get_children_props 🌸
  • power_domains β€” the original literally gives this one no description, bestie. It's just there. πŸ™ˆ

🌸 DESCRIPTION 🌸

So this routine will return true only if the device node is a hotpluggable slot. That's the whole vibe check. βœ…

This routine will return false for built-in pci slots β€” even when the built-in slots are dlparable. Yep, even then. Built-in slots do not get the hotpluggable crown here πŸ‘‘πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/pci/hotplug/rpaphp_core.c β€” plus set_attention_status(9), get_power_status(9), get_attention_status(9), and rpaphp_add_slot(9) πŸ”₯


mwah πŸ’‹ this page came from ./drivers/pci/hotplug, dated October 2026, and it's is_php_dn(9) saying byeeee ✨🫢

πŸ“¦ where this page comes from