get_next_free_sla_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… get_next_free_sla_id(9) β€” the Kernel API Manual glow-up

okay bestie, gather round, because this little function from the Kernel API Manual is about to be your new fave. It's called get_next_free_sla_id, and its whole entire job is literally finding the next free ID in the SLA array. That's it. That's the vibe. ✨


πŸŽ€ NAME πŸŽ€

get_next_free_sla_id β€” finds next free ID in the SLA array. no cap, that's the whole thing 🫢


🌸 SYNOPSIS 🌸

int get_next_free_sla_id (struct adf_rl *rl_data );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • rl_data β€” Pointer to ratelimiting data structure. that's your one (1) input, bestie, a pointer to the ratelimiting data struct. iconic. πŸ’…

✨ RETURN ✨

the return value is giving "two possible timelines" energy:

  • 0 : RL_NODES_CNT_MAX β€” correct ID πŸŽ‰ (like, you got a valid one, slay)
  • -ENOSPC β€” all SLA slots are in use 😭 (every slot is taken, no room, the array said "we're full")

πŸ’œ SEE ALSO πŸ’œ

so here's the friend group, fr fr:


πŸ’€ reminder bestie: if you get -ENOSPC back, that's not a you problem, the SLA slots are genuinely all in use. don't go inventing IDs, iykyk.

and that's the whole page! 🧚 mwah. source/version is ./drivers/crypto/intel/qat/qat..., dated October 2026, and this little slice of get_next_free_sla_id(9) excellence is officially wrapped. go forth and find those free IDs, main character πŸ’–πŸŒˆβ­

πŸ“¦ where this page comes from