STRUCT ISCSI_CID_QUEUE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct iscsi_cid_queue β€” the Kernel API Manual glow-up

okay bestie, so this is struct iscsi_cid_queue(9) from the Kernel API Manual, and it's basically the per-adapter bookkeeping situation for iSCSI CIDs. lowkey iconic. let's get into it πŸŽ€


✨ NAME ✨

struct iscsi_cid_queue β€” the per adapter iscsi cid queue. that's it, that's the whole vibe πŸ¦‹


✨ SYNOPSIS ✨

here's the whole struct, copied exactly, no cap:

struct iscsi_cid_queue {
    void *cid_que_base;
    u32 *cid_que;
    u32 cid_q_prod_idx;
    u32 cid_q_cons_idx;
    u32 cid_q_max_idx;
    u32 cid_free_cnt;
    struct qedi_conn **conn_cid_tbl;
 };

🌸 Members 🌸

these are the fields, and yes every single one matters πŸ’–

  • cid_que_base β€” the queue base memory. it's a void *, so it's giving mysterious main character energy ✨
  • cid_que β€” the queue memory pointer, a u32 *. this is the actual pointer-pointer situation, iykyk
  • cid_q_prod_idx β€” the produce index πŸ‘‘
  • cid_q_cons_idx β€” the consumer index 🫢
  • cid_q_max_idx β€” the max index. it's used to detect the wrap around condition 🌈 (yes bestie, wrap-around detection is real and it's doing the most)
  • cid_free_cnt β€” the queue size πŸ“
  • conn_cid_tbl β€” the iscsi cid to conn structure mapping table. it's a struct qedi_conn **, so like, a table of pointers to pointers to conns. table-ception fr fr πŸ’…

πŸ’œ Description πŸ’œ

Per adapter iSCSI CID Queue. that's the whole description and honestly? slay. short, sweet, to the point. πŸ’€


⭐ SEE ALSO ⭐

  • the kernel file ./drivers/scsi/qedi/qedi.h β€” go read it bestie, it's right there πŸ”₯

ngl this page is a little brief, but that's just how the kernel docs roll sometimes. no invented lore, no extra claims β€” we keep it exactly as the source says. πŸ™ˆ

and that's the page!! brought to you by ./drivers/scsi/qedi, October 2026 edition, from the Kernel API Manual. drink some water, hydrate, and go map some cids to conns 🧚 πŸ’œβœ¨

πŸ“¦ where this page comes from