assign_requ...urces_sorted(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” a bool, 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:


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