adf_rl_add_sla(9)
β¨ adf_rl_add_sla(9) β the Kernel API Manual moment π
okay so bestie, welcome to the <pink>adf_rl_add_sla</pink> page, section 9 of the Kernel API Manual β yes we're in kernel-land, yes it's giving main character energy π
πΈ NAME πΈ
adf_rl_add_sla β handles the creation of an SLA. that's it, that's the whole vibe. it literally handles the creation of an SLA, no cap π«Ά
π¦ SYNOPSIS π¦
int adf_rl_add_sla (struct adf_accel_dev *accel_dev , struct
adf_rl_sla_input_data *sla_in );
like, it takes two pointers and returns an int. simple. iconic. periodt β¨
π ARGUMENTS π
accel_devβ pointer to acceleration device structure. your accel device bestie, she's astruct adf_accel_dev *and you're passing her by pointer, obviously π«sla_inβ pointer to user input data required to add an SLA. all the user input you need to actually add that SLA lives in here, in astruct adf_rl_sla_input_data *π
π RETURN π
the return value tells you how it went, so pay attention bestie, this is the vibe check π₯
0β ok π like everything slayed, we're good-ENOMEMβ memory allocation failed π the allocator said no-EINVALβ invalid user input π you gave it something it can't work with-ENOSPCβ all available SLAs are in use π no space left, every SLA is taken, there is literally no room
ngl always check that return value. doesn't matter how cute your pointers are, -ENOSPC will humble you fr fr.
π SEE ALSO π
the whole friend group, in the order the page lists them π«Ά
Kernel file ./drivers/crypto/intel/qat/qat_common/adf_rl.c β that's where the code lives, iykyk
find_parent(9)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_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)
go read those too, they're all part of the same little ecosystem, obsessed honestly π
and that's the page!! sourced from ./drivers/crypto/intel/qat/qat..., dated October 2026, page adf_rl_add_sla(9) β mwah, go create some SLAs responsibly ππ
π¦ 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