configure_new_function(9)
π configure_new_function(9) β from the Kernel API Manual, bestie
okay so this one is a kernel page, not a command-line thing, so buckle up β it's <purple>configure_new_function</purple> from the Kernel API Manual and it's lowkey doing a lot of heavy lifting for PCI hotplug. iykyk π«Ά
β¨ NAME β¨
configure_new_function β sets up the PCI header info for one single device. that's it. that's the whole job. iconic of her honestly π
π¦ SYNOPSIS π¦
int configure_new_function (struct controller *ctrl , struct pci_func
*func , u8 behind_bridge , struct resource_lists *resources );
like, look at that signature. four whole arguments. she's serving function-pointer energy π
πΈ ARGUMENTS πΈ
ctrlβ pointer to the controller structure. your main character controller, fr.funcβ pointer to the function structure. the function you're configuring, not to be confused with the C function you're inside of πbehind_bridgeβ au8where1means this is a recursive call and0means it's not. yes bestie, she recurses. we'll get there.resourcesβ pointer to the set of resource lists. the whole squad of resources, handed over by pointer.
π₯ DESCRIPTION π₯
okay so the actual vibe: configure_new_function calls itself recursively for bridged devices. π yes, she's that girl β recursion queen, main character energy, calling herself like it's a group chat.
and what does she return? 0 if it's a success. that's it. success = 0, as is tradition in kernel land. π
ngl, this is the kind of function where the summary is one sentence and the recursion does all the talking. no cap.
π SEE ALSO π
this is the part where she tags everyone in the group chat β and bestie, it is a long list π«Ά
Kernel file ./drivers/pci/hotplug/cpqphp_ctrl.c, plus:
cpqhp_find_slot(9)sort_by_size(9)sort_by_max_size(9)do_pre_bridge_resource_split(9)do_bridge_resource_split(9)get_io_resource(9)get_max_resource(9)get_resource(9)cpqhp_resource_sort_and_combine(9)cpqhp_slot_create(9)slot_remove(9)bridge_slot_remove(9)cpqhp_slot_find(9)set_controller_speed(9)board_replaced(9)board_added(9)remove_board(9)cpqhp_pushbutton_thread(9)switch_leds(9)cpqhp_hardware_test(9)configure_new_device(9)
every single one, exactly as written β I would never leave a bestie off the invite list π§β¨
and that's the whole page, bestie π she lives in ./drivers/pci/hotplug, the manpage is dated October 2026, and the page itself is configure_new_function(9) β slay, periodt, go configure some functions ππ¦π
π¦ 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