assign_requ...urces_sorted(9)
π assign_requested_resources_sorted β NAME
ok so this is assign_requested_resources_sorted(9), straight out of the Kernel API Manual β¨ and its whole personality is: satisfy resource requests. that's it, that's the job π
πΈ SYNOPSIS
void assign_requested_resources_sorted (struct list_head *head ,
struct list_head *fail_head ,
bool optional );
like, it returns nothing (void, bestie, don't @ me) and it takes three things. keep reading π
π¦ ARGUMENTS
headβ the head of the list that's tracking all the resource requests. this is the main character of the whole operation πfail_headβ the head of the list that tracks the requests that could not be allocated π like the sad little corner of shame for the ones that didn't make the cut.optionalβ abool, and if you set it, you also assign the optional resources too. lowkey generous of you π«Ά
β¨ DESCRIPTION
okay so here's the tea: it satisfies the resource requests of each element in the list. every single one. no skipping. π
and if a request genuinely can't be satisfied? it doesn't just vanish into the void β it gets added to the failed_list. so nothing is lost, everything is accounted for, periodt π
π SEE ALSO
the kernel file ./drivers/pci/setup-bus.c and honestly the whole friend group:
pci_dev_res_add_to_list(9)pbus_select_window_for_type(9)pbus_select_window(9)reassign_resources_sorted(9)pbus_size_io(9)pbus_size_mem(9)
and that's the whole page, bestie π this lil icon shipped out of ./drivers/pci back in October 2026, and yeah it's still serving Kernel API Manual energy. mwah ππ§ββοΈ
π¦ 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