find_parent(9)
π 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:
adf_rl_get_sla_arr_of_type(9)prepare_rp_ids(9)can_parent_afford_sla(9)can_node_afford_update(9)get_next_free_sla_id(9)get_next_free_node_id(9)add_new_sla_entry(9)add_update_sla(9)adf_rl_add_sla(9)adf_rl_update_sla(9)adf_rl_get_sla(9)adf_rl_get_capability_remaining(9)adf_rl_remove_sla(9)adf_rl_remove_sla_all(9)
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
- 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