STRUCT NFP_NSP_COMMAND_ARG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct nfp_nsp_command_arg(9) πŸ’–

okay bestie, so this is a page from the Kernel API Manual and honestly? it's giving "small struct, huge responsibility." it's the struct nfp_nsp_command_arg β€” the NFP command argument structure. that's the NAME section, we're done with it, slay. ✨


🌸 SYNOPSIS 🌸

like, here's the whole vibe, character for character:

struct nfp_nsp_command_arg {
    u16 code;
    bool dma;
    unsigned int timeout_sec;
    u32 option;
    u64 buf;
    void (*error_cb)(struct nfp_nsp *state, u32 ret_val);
    bool error_quiet;
 };

look at her. seven members. main character energy fr. πŸ’…


πŸŽ€ Members πŸŽ€

okay so let's go member by member, no skips, we're not doing that today:

  • code β€” the NFP SP Command Code. that's the code. the command code. NFP SP flavored. πŸ’œ
  • dma β€” a bool and it's lowkey important: it means buf points to a host buffer, not an NSP buffer. yes, that distinction matters. know it. πŸ¦‹
  • timeout_sec β€” timeout value to wait for completion, measured in seconds. an unsigned int, so like, be normal about the numbers you give her. ⏰
  • option β€” the NFP SP Command Argument. a u32. iconic, no notes. ✨
  • buf β€” the NFP SP Buffer Address, a u64. where the buffer lives. (see dma up there for the whole host-vs-NSP thing, iykyk) 🫢
  • error_cb β€” callback for interpreting option if an error occurred. signature is void (*error_cb)(struct nfp_nsp *state, u32 ret_val); β€” so it takes the state and the ret_val, mwah. πŸ’–
  • error_quiet β€” "don't print command error/warning." BUT β€” and this is the part you cannot miss β€” protocol errors are still logged. so quiet is not silent, bestie. do not let that one slide. 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

go read them, they're all friends of hers, the whole friend group ate. 🌈⭐


ngl the only "warning" here is the error_quiet one: turning it on does not mean protocol errors stop being logged. that's the whole note. that's the tea. πŸ“

and that's the page, bestie β€” from ./drivers/net/ethernet/netrono... (they truncated it, not me 😭) dated October 2026, closing out with struct nfp_nsp_command_arg(9) right there in the footer. periodt. πŸ’…πŸ‘‘

πŸ“¦ where this page comes from