STRUCT FCOE_PERCPU_S(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct fcoe_percpu_s(9)

okay bestie, welcome to the Kernel API Manual ✨ β€” yes, we're literally reading kernel docs together, this is our Hot Girl Systems Programming era πŸŽ€. Today's main character is struct fcoe_percpu_s, and it's giving "the context for FCoE receive thread(s)" πŸ¦‹. That's the whole vibe β€” it's the little per-CPU hangout spot where FCoE receive threads keep their stuff. Periodt.


🌸 SYNOPSIS 🌸

struct fcoe_percpu_s {
    struct task_struct *kthread;
    struct work_struct work;
    struct sk_buff_head fcoe_rx_list;
    struct page *crc_eof_page;
    int crc_eof_offset;
    local_lock_t lock;
 };

no cap, that's the whole struct πŸ’–. Copy it exactly, don't get cute with it, bestie β€” the compiler does not think typos are iconic πŸ™ˆ.


✨ Members ✨

okay so let's meet the squad, one member at a time 🫢:

  • kthread β€” the thread context. it's lowkey only used by bnx2fc πŸ‘‘ (yes, it's a whole thing, iykyk).
  • work β€” the work item, and this one's used by fcoe πŸ’….
  • fcoe_rx_list β€” the queue of pending packets to process. the little inbox where packets wait their turn, main character energy fr fr πŸ“.
  • crc_eof_page β€” the memory page for calculating frame trailer CRCs ✨. it's the scratch page, it's doing the math.
  • crc_eof_offset β€” the offset into the CRC page pointing to available memory for a new trailer 🌸. like, where's the next free slot? this int knows.
  • lock β€” local lock for members of this struct πŸ”’. keeps the whole squad from stepping on each other, we love a boundaries moment.

🌈 SEE ALSO 🌈

go read these next, bestie, they're all in Kernel file ./include/scsi/libfcoe.h πŸ“š:

that's the whole reading list, no skipping πŸ‘‘πŸ’œ.


and that's a wrap on our girl πŸ’– this page lives in ./include/scsi, dated October 2026, and it's filed under struct fcoe_percpu_s(9) β€” slay, ate, no notes πŸŽ€πŸ¦‹βœ¨

πŸ“¦ where this page comes from