is_php_dn(9)
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β targetdevice_nodeπindexesβ passed toget_children_propsπ§namesβ passed toget_children_propsπ¦typesβ returned fromget_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
- 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