STRUCT GENERIC_PDU_RESC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct generic_pdu_resc(9) ✨

okay bestie, welcome to the Kernel API Manual entry for struct generic_pdu_resc β€” that's the login pdu resource structure and she is lowkey the whole backstage pass for iSCSI login traffic πŸŽ€


✨ NAME ✨

struct generic_pdu_resc β€” the login pdu resource structure πŸ’…


🌸 SYNOPSIS 🌸

struct generic_pdu_resc {
    char *req_buf;
    dma_addr_t req_dma_addr;
    u32 req_buf_size;
    char *req_wr_ptr;
    struct iscsi_hdr resp_hdr;
    char *resp_buf;
    dma_addr_t resp_dma_addr;
    u32 resp_buf_size;
    char *resp_wr_ptr;
    char *req_bd_tbl;
    dma_addr_t req_bd_dma;
    char *resp_bd_tbl;
    dma_addr_t resp_bd_dma;
 };

like, that's her whole outfit, head to toe, no cap 🫢


πŸ¦‹ Members πŸ¦‹

so every single field, and what she actually does:

  • req_buf β€” the driver buffer that stages the payload riding along with the login request πŸ“₯
  • req_dma_addr β€” the dma address for that iSCSI login request payload buffer ✨
  • req_buf_size β€” the actual login request payload length (yes, the real one) πŸ“
  • req_wr_ptr β€” pointer into the login request buffer for when the next data is gonna be written ✍️
  • resp_hdr β€” the iscsi header where the iscsi login response header gets recreated 🎬 (it's giving main character energy, honestly)
  • resp_buf β€” buffer to stage the login response payload πŸ“€
  • resp_dma_addr β€” the login response payload buffer's dma address πŸ’«
  • resp_buf_size β€” the login response payload length πŸ“
  • resp_wr_ptr β€” pointer into the login response buffer for when the next data is to be written ✍️
  • req_bd_tbl β€” the iscsi login request payload BD table πŸ—‚οΈ
  • req_bd_dma β€” the login request BD table dma address πŸ”—
  • resp_bd_tbl β€” the iscsi login response payload BD table πŸ—‚οΈ
  • resp_bd_dma β€” login request BD table dma address πŸ”—
fr fr, that last one is written exactly like the manual says it β€” resp_bd_dma described as the login request BD table dma address. not me editing the docs, i'm just the messenger bestie 😭

πŸ’œ Description πŸ’œ

so the way this works: this structure defines the buffer info for generic pdus β€” think iSCSI Login, Logout and NOP πŸ¦‹ like, the everyday little pdus that keep the session alive and slaying.


🌈 SEE ALSO 🌈

  • Kernel file ./drivers/scsi/qedi/qedi_iscsi.h β€” go read it, iykyk πŸ‘‘

and that's the whole vibe check πŸ’– this page lives under ./drivers/scsi/qedi, dated October 2026 β€” mwah, periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from