adf_rl_get_...ty_remaining(9)
π adf_rl_get_capability_remaining β the Kernel API Manual glow-up β¨
okay so bestie, we're in the Kernel API Manual today and the star of the show is adf_rl_get_capability_remaining(9) β yes the header line got shortened to adf_rl_get_...ty_remaining(9) up top, that's just the terminal being extra, she's fine π
πΈ NAME πΈ
adf_rl_get_capability_remaining β returns the remaining SLA value (CIR) for selected service or provided sla_id. literally her whole job π
β¨ SYNOPSIS β¨
int adf_rl_get_capability_remaining (struct adf_accel_dev *accel_dev ,
enum adf_base_services srv , int sla_id );
like, three args, one int back, we love a clean signature π«Ά
π¦ ARGUMENTS π¦
accel_devβ pointer to acceleration device structure. the whole device vibe, she needs it πsrvβ service ID for which capability is requested. tell her which service you're asking about πΈsla_idβ ID of the cluster or root to which we want assign a new SLA. that's the one, the ID itself π₯
π DESCRIPTION π
so here's what she does, no cap: first she checks if the provided SLA id is valid. if it is valid, and the service matches the requested service, and the type is cluster or root β she returns the remaining capability. slay, straightforward π
but if the provided ID does not match the service or type? she doesn't just give up, she falls back and returns the remaining capacity of the default cluster for that service. main character energy honestly, she always has a backup plan π
π RETURN π
- Positive value β correct remaining value β¨ (good vibes, real number)
-EINVALβ algorithm cannot find a remaining value for provided data π (she looked, bestie, it's not there)
π§ SEE ALSO π§
Kernel file ./drivers/crypto/intel/qat/qat_common/adf_rl.c β that's where she lives, go say hi π
and her whole friend group, fr fr:
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_add_sla(9), adf_rl_update_sla(9), adf_rl_get_sla(9), adf_rl_remove_sla(9), adf_rl_remove_sla_all(9)
π quick reminder: the file path in SEE ALSO shows up truncated as ./drivers/crypto/intel/qat/qat... in the footer, that's just the page being shy, the real one is the full path above π
okay and finally the cute sign-off π this one comes from ./drivers/crypto/intel/qat/qat... and it's dated October 2026 β yeah, future-coded icon behavior, periodt β go read the source, ily, bye ππ¦
π¦ 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