bnx2i_alloc_bdt(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… bnx2i_alloc_bdt(9) β€” from the Kernel API Manual, bestie ✨

Ok so real talk, this is a page straight out of the Kernel API Manual and it's about bnx2i_alloc_bdt(9), and honestly? It's a little icon doing one very specific job. Let's get into it 🫢


🌸 NAME 🌸

bnx2i_alloc_bdt β€” the function that allocates the buffer descriptor (BD) table for the command. That's it, that's the whole vibe. It hands your command its very own BD table and it does it slayfully πŸ’…


✨ SYNOPSIS ✨

int bnx2i_alloc_bdt (struct bnx2i_hba *hba , struct iscsi_session
*page* , struct bnx2i_cmd *cmd );

No cap, that's the whole signature. Three pointers in, an int out, and the BD table situation gets handled. Periodt πŸ”₯

Lowkey important: the second parameter is struct iscsi_session *session β€” it's written across a line break up there so don't let the wrap fool you πŸŽ€

πŸ¦‹ ARGUMENTS πŸ¦‹

Three besties walk into this function and here's who they are:

  • hba β€” the adapter instance pointer. It's giving "which physical adapter are we even talking about" main character energy πŸ‘‘
  • session β€” the iscsi session pointer. Your session, your girl, your context for the command 🌈
  • cmd β€” the iscsi command structure. This is the actual command that needs its BD table allocated, and we're here to make that happen πŸ’–

πŸŽ€ SEE ALSO πŸŽ€

Ok this list is long and I'm obsessed, so buckle up. First of all, the kernel file this whole thing lives in:

./drivers/scsi/bnx2i/bnx2i_iscsi.c

And then the entire extended friend group, all at section 9 of the manual:

Literal friend group of the century, iykyk πŸ’œ


Anyway bestie, that's the page! This one came from ./drivers/scsi/bnx2i and it's dated October 2026 β€” go read the whole squad, they all ate πŸ’…βœ¨

πŸ“¦ where this page comes from