resctrl_find_domain(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 resctrl_find_domain(9) β€” Kernel API Manual 🌸

okay bestie, welcome to the Kernel API Manual!! today's main character is resctrl_find_domain, and she is lowkey here to search a resource domain list for a domain id. it's giving "find ur friend in the crowd" energy. πŸŽ€βœ¨


✨ NAME ✨

resctrl_find_domain - search for a domain id in a resource domain list. πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

struct rdt_domain_hdr * resctrl_find_domain (struct list_head *h , int id , struct list_head **pos );

πŸŽ€ ARGUMENTS πŸŽ€

ok so here is the group-chat roll call, bestie:

  • h β€” the domain list to search. this is the list we are digging through. πŸ”
  • id β€” the domain id to search for. this is the target, the whole reason we are here. 🎯
  • pos β€” a pointer to the position in the list where id should be inserted. literally a lil bookmark for future u. πŸ“

πŸ’œ DESCRIPTION πŸ’œ

so the whole vibe is: search the domain list to find the domain id. if the domain id is found, return the domain. NULL otherwise. 😭

if the domain id is not found (and NULL is returned), then the first domain with an id bigger than the input id can be returned to the caller via pos. that is the plot twist, and it is lowkey iconic. πŸŒ€πŸ”₯

πŸ”₯ SEE ALSO πŸ”₯

omg the friend group is huge. every single one is here, no skipping, no cap:

and that's the tea β˜• β€” xoxo, your resctrl_find_domain(9) bestie, signed from source/version ./include/linux, dated October 2026. mwah πŸ’‹πŸ«Ά
πŸ“¦ where this page comes from