STRUCT IL_DEVICE_CMD(9)
π struct il_device_cmd(9) β from the Kernel API Manual, bestie π
okay so picture this: you're deep in the iwlegacy wireless driver and you need a struct that's basically the "how big can this command get" bouncer for the command and tx queues. that's her. that's struct il_device_cmd. say hi π
β¨ NAME β¨
struct il_device_cmd β (yes the original NAME line literally has no description after the dash, she's mysterious like that π
no cap, nothing was there, so nothing's added π«Ά)
πΈ SYNOPSIS πΈ
struct il_device_cmd {
struct il_cmd_header hdr;
union {
u32 flags;
u8 val8;
u16 val16;
u32 val32;
struct il_tx_cmd_hdr tx;
u8 payload[DEF_CMD_PAYLOAD_SIZE];
} cmd;
};
like, look at that union. she contains multitudes π flags, val8, val16, val32, tx, and a whole payload array sized DEF_CMD_PAYLOAD_SIZE. one struct, so many moods β¨
π¦ Members π¦
fr fr the original page gives this heading and thenβ¦ nothing. zero members listed. an empty section, living her best minimal life π so we're not inventing any β that's the whole vibe check π«Ά
π Description π
okay so here's the actual tea β β this struct is all about allocation of the command and tx queues. when the driver sets up those queues, struct il_device_cmd is what establishes the overall size of the largest command we send to uCode.
and yes, there's exactly one exception, bestie, and it's the big one: a scan command, which is relatively huge π β the original is very clear that its space is allocated separately. so don't try to squeeze a scan command in here, she's not built for that, literally π
π SEE ALSO π
the whole friend group π«Ά go say hi:
Kernel file ./drivers/net/wireless/intel/iwlegacy/common.hstruct 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_inc_wrap(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)
ok and one little PSA π«Ά: this page lives at ./drivers/net/wireless/intel/i... in the source tree, and she's dated October 2026. iconic. periodt. πβ¨
that's the whole page, bestie β go forth and allocate responsibly ππΈ
π¦ 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