can_parent_afford_sla(9)
β¨ can_parent_afford_sla(9) β the "can ur parent actually afford this" check π
okay bestie, so this one lives in the Kernel API Manual (section 9, kernel developer vibes π ) and it's literally the bouncer at the club door for SLA creation. Let's get into it π¦
πΈ NAME πΈ
can_parent_afford_sla β verifies if parent allows to create an SLA β¨
π«Ά SYNOPSIS π«Ά
bool can_parent_afford_sla (struct adf_rl_sla_input_data *sla_in ,
struct rl_sla *sla_parent , u32 sla_cir , bool is_update );
π ARGUMENTS π
sla_inβ pointer to user input data for a new SLAsla_parentβ pointer to parent SLA objectsla_cirβ current child CIR value (only for update)is_updateβ request is a update
π DESCRIPTION π
So the algorithm verifies if parent has enough remaining budget to take assignment of a child with provided parameters. Like, does the parent's wallet stretch that far? πΈ
In update case current CIR value must be returned to budget first β gotta put the old money back before you spend the new money, iykyk.
And no cap: PIR value cannot exceed the PIR assigned to parent. That's a hard limit, bestie. π«
π₯ RETURN π₯
trueβ SLA can be created β slayfalseβ SLA cannot be created π
β SEE ALSO β
Kernel file ./drivers/crypto/intel/qat/qat_common/adf_rl.c
Also go say hi to the whole friend group: find_parent(9), adf_rl_get_sla_arr_of_type(9), prepare_rp_ids(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 is./drivers/crypto/intel/qat/qat...and this page is dated October 2026 β and it's beencan_parent_afford_sla(9)the whole time. periodt. βπ
π¦ 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