find_parent(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… find_parent(9) β€” the Kernel API Manual glow-up πŸŽ€

okay so bestie, welcome to find_parent(9) β€” the little kernel function that goes "who's your mom?" for a brand-new SLA. it lives in the Kernel API Manual and honestly it's giving matchmaker energy 🌸


✨ SYNOPSIS ✨

struct rl_sla * find_parent (struct adf_rl *rl_data , struct
       adf_rl_sla_input_data *sla_in );

like, that's the whole vibe. returns a struct rl_sla *. no cap. πŸ’…


🫢 ARGUMENTS 🫢

  • rl_data β€” pointer to ratelimiting data. this is the main-character data structure, the one holding all the RL lore πŸ”₯
  • sla_in β€” pointer to user input data for a new SLA. literally the "hey can you make me one of these" request πŸ’Œ

πŸ’– DESCRIPTION πŸ’–

so the function returns a pointer to the parent SLA. that's the whole job, and it ate. πŸ‘‘

here's the tea though β€” it's got two paths:

  • if the parent ID is provided as input in the user data, then such ID is validated, and the parent SLA is returned. yup, it does a vibe check on that ID first, no shortcuts ✨
  • otherwise (no parent ID in the input), it returns the default parent SLA β€” root or cluster β€” for the new object. the fallback parent, the safety net, the "don't worry babe i got you" 🧚

🌈 RETURN 🌈

  • Pointer to the parent SLA object πŸ’–
  • NULL β€” when parent cannot be found 😭 (that's the sad path, it happens, don't take it personally)

πŸ¦‹ SEE ALSO πŸ¦‹

the source of truth is right here in the kernel, bestie:

  • Kernel file ./drivers/crypto/intel/qat/qat_common/adf_rl.c β€” go read it, it's iconic ⭐

and the whole friend group of related functions, all of them, periodt:


ngl the source path in the footer got truncated to ./drivers/crypto/intel/qat/qat... and the date is October 2026 β€” so yeah, that's the version-and-date situation, don't come for me, i just report what the page says πŸ™ˆ

and that's the page!! no notes, absolutely slayed, go find some parents bestie πŸ’œπŸŽ€βœ¨

πŸ“¦ where this page comes from