configure_new_device(9)
π configure_new_device β the Kernel API Manual page, but make it make sense
okay so bestie, welcome to the configure_new_device(9) glow-up β¨ this is a kernel API manual page and we're gonna get through it together, no cap. grab a boba, we're configuring stuff.
β¨ NAME β¨
configure_new_device β configures the PCI header information of one board. that's it, that's the whole vibe. one board, header info, configured. periodt π
π«Ά SYNOPSIS π«Ά
u32 configure_new_device (struct controller *ctrl , struct pci_func *func , u8 behind_bridge , struct resource_lists *resources );
look at that signature, it's giving main character energy π four whole arguments, returns a u32. iconic honestly.
π ARGUMENTS π
ctrlβ pointer to the controller structure. yes bestie, a pointer, handle with care πfuncβ pointer to the function structure. another pointer, we stay pointing πΈbehind_bridgeβ1if this is a recursive call,0if it's not. that's the whole bit. one or zero. binary icon behavior πresourcesβ pointer to the set of resource lists. pointer number three, we love a consistent aesthetic π¦
π DESCRIPTION π
returns 0 if success. that's literally it. no notes. 0 means success, and that is the entire description πβ¨
π SEE ALSO π
kernel file ./drivers/pci/hotplug/cpqphp_ctrl.c and honestly? a whole friend group of functions. here's the roll call, all of them, not skipping a single one:
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_function(9)
that's twenty-one functions, all named exactly right, go read them iykyk ππ₯
lowkey reminder: this page is from Kernel API Manual and lives under./drivers/pci/hotplugβ dated October 2026 and titledconfigure_new_device(9). mwah, bye bestie π«Άπππ·
π¦ 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