il_queue_inc_wrap(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… il_queue_inc_wrap(9) β€” a Kernel API Manual moment

okay so bestie, welcome to the Kernel API Manual entry for il_queue_inc_wrap(9) ✨ this is a lil function from the kernel API docs and she is, and I cannot stress this enough, extremely small and extremely specific πŸŽ€


🌸 NAME 🌸

il_queue_inc_wrap β€” increments the queue idx and wraps back to the beginning πŸŒ€

so like, the full description in the original is literally: increment queue idx, wrap back to beginning @idx -- current idx @n_bd -- total number of entries in queue (must be power of 2) πŸ’–

breaking that down for you:

  • @idx β€” your current idx, bestie
  • @n_bd β€” the total number of entries in the queue
  • and yes, that n_bd total must be a power of 2 πŸ‘‘ that's not a vibe suggestion, that's the actual rule, no cap

✨ SYNOPSIS ✨

int il_queue_inc_wrap (int idx , int n_bd );

look at her. two ints in, one int out. she's giving minimalism πŸ¦‹


🫢 ARGUMENTS 🫢

  • idx β€” -- undescribed -- 😭 the docs really said "figure it out yourself"
  • n_bd β€” -- undescribed -- πŸ™ˆ same energy, no description provided
bestie I need you to know I'm not gatekeeping anything here β€” the manual genuinely does not describe these two params. the source said -- undescribed -- and I'm just the messenger πŸ’€ and remember, from the NAME section: n_bd is the total number of entries in the queue and it must be a power of 2 ⭐

πŸ¦‹ SEE ALSO πŸ¦‹

✨ the kernel file is ./drivers/net/wireless/intel/iwlegacy/common.h β€” that's where she lives, iykyk πŸ’œ

and here's the whole friend group, in the order they're listed, all present and accounted for πŸŽ€:

not me noticing il_queue_dec_wrap(9) sitting right there in the list πŸ‘€ her sibling who goes the other way. iconic family dynamic fr fr 🌈


πŸ’– cute lil sign-off πŸ’–

that's the whole page, bestie 🫢 source and version vibes come from ./drivers/net/wireless/intel/i... and she's dated October 2026, filed under il_queue_inc_wrap(9) ⭐ and that's the wrap β€” literally πŸ’…βœ¨

πŸ“¦ where this page comes from