libnvme(9)

πŸ’– libnvme(9) β€” API Manual πŸ’–

okay bestie, welcome to the libnvme zone, where we talk about the C API like it's the group chat and every struct is a little main character. this one? it's about struct nvme_zns_mgmt_send_args, aka the argument bundle for the NVMe ZNS Management Send command. no cap, it's giving "one struct to hold all your send-command vibes." ✨


🌸 NAME 🌸

struct nvme_zns_mgmt_send_args β€” the arguments for the NVMe ZNS Management Send command πŸ¦‹


✨ SYNOPSIS ✨

here's the whole glow-up, verbatim, don't touch a single semicolon bestie:

struct nvme_zns_mgmt_send_args {
    __u64 slba;
    __u32 *result;
    void *data;
    int args_size;
    int fd;
    __u32 timeout;
    __u32 nsid;
    enum nvme_zns_send_action zsa;
    __u32 data_len;
    bool select_all;
    __u8 zsaso;
 };

🫢 Members 🫢

okay so let's go field by field, like we're doing a little tour of the struct. every single one, no skipping, periodt. πŸ’…

  • slba β€” starting logical block address. this is where the party begins πŸ“
  • result β€” the command completion result, straight from CQE dword0 πŸ‘‘
  • data β€” the userspace address of the data. that's your buffer's home address fr fr 🏠
  • args_size β€” the size of struct nvme_zns_mgmt_send_args. yes she knows her own size, iconic 🌈
  • fd β€” file descriptor of the nvme device πŸ”Œ
  • timeout β€” timeout in ms ⏳
  • nsid β€” namespace ID 🏷️
  • zsa β€” zone send action 🌸
  • data_len β€” length of the data πŸ“
  • select_all β€” the select all flag ✨
  • zsaso β€” Zone Send Action Specific Option πŸŽ€

lowkey reminder bestie: these fields get copied and referenced exactly as written. don't be out here renaming things or "fixing" types, that's not the vibe. πŸ™ˆ

and that's the whole page, my love πŸ’œ this was the libnvme API Manual, and this particular entry is struct nvme_zns_mgmt_send_args, dated August 2026, page libnvme(9). slay, you read the whole thing, I'm so proud of you πŸ₯ΉπŸ’– go send some zones, bestie. πŸ¦‹β­

πŸ“¦ where this page comes from