add_update_sla(9)
π add_update_sla(9) β a Kernel API Manual moment π
okay so bestie, welcome to the add_update_sla(9) page, it's giving kernel API manual energy and honestly we're obsessed. this is the doc for add_update_sla, and it's lowkey the whole vibe for how an SLA gets born and how it gets updated. two jobs, one function, main character energy fr fr. β¨
πΈ NAME πΈ
add_update_sla β handles the creation and the update of an SLA π
β¨ SYNOPSIS β¨
int add_update_sla (struct adf_accel_dev *accel_dev , struct
adf_rl_sla_input_data *sla_in , bool is_update );
π¦ ARGUMENTS π¦
accel_devβ pointer to acceleration device structure, like the actual hardware baddie we're talking to π₯sla_inβ pointer to user input data for a new/updated SLA, aka the lore the user is handing over πis_updateβ flag to indicate if this is an update or an add operation π (yes bestie, it's literally the "new or improved" toggle)
π RETURN π
the return values, no cap, every single one:
0β ok π (slay)-ENOMEMβ memory allocation failed π (the malloc said no)-EINVALβ user input data cannot be used to create SLA π (the vibes were off)-ENOSPCβ all available SLAs are in use π (full, no room, periodt)
fr fr check these before you assume anything worked, bestie. 0 is the only "we ate" answer.
π SEE ALSO π
Kernel file ./drivers/crypto/intel/qat/qat_common/adf_rl.c β like the whole source right there, iykyk π§
and the whole friend group, all of them, in order:
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)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)
π cute little sign-off: this page lives at./drivers/crypto/intel/qat/qat...and it's dated October 2026 β and the manual isadd_update_sla(9), which we already knew but like, closure. bye bestie, go read some source π«Άβ
π¦ 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