il_queue_inc_wrap(9)
π 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_bdtotal 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_bdis 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 π:
struct il_device_cmd(9)struct il_device_cmd_huge(9)struct il_rx_queue(9)struct il_ht_agg(9)struct il_vif_priv(9)struct il_hw_params(9)struct il_cfg(9)il_clear_driver_stations(9)il_sta_id_or_broadcast(9)il_queue_dec_wrap(9)il_beacon_time_mask_low(9)il_beacon_time_mask_high(9)struct il_rb_status(9)struct il_tfd_tb(9)struct il_tfd(9)struct il_rate_scale_data(9)struct il_scale_tbl_info(9)struct il_lq_sta(9)il3945_rate_scale_init(9)
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
- 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