libnvme(9)

πŸ’– NAME πŸ’–

struct nvme_directive_recv_args β€” the lil argument bundle you hand over for the NVMe Directive Receive command, bestie ✨


🌸 SYNOPSIS 🌸

struct nvme_directive_recv_args {
    __u32 *result;
    void *data;
    int args_size;
    int fd;
    __u32 timeout;
    __u32 nsid;
    enum nvme_directive_receive_doper doper;
    enum nvme_directive_dtype dtype;
    __u32 cdw12;
    __u32 data_len;
    __u16 dspec;
 };

πŸŽ€ Members πŸŽ€

Okay so this is the whole cast, and every single one of them has main character energy in their own way πŸ‘‘

  • result β€” if everything goes slay, this is where the CQE dword0 value lands. it's a __u32 *, so a pointer, not a vibe. 🫢
  • data β€” the userspace address of the data payload. literally where your actual bytes live. ✨
  • args_size β€” the size of struct nvme_directive_recv_args. yes it's self-referential, no it's not a mirror selfie, it's just struct bookkeeping. πŸ’…
  • fd β€” file descriptor of the nvme device. your ticket to the party, no cap. 🎟️
  • timeout β€” timeout in ms. the clock is ticking bestie ⏰
  • nsid β€” Namespace ID, if applicable. so like, sometimes it's relevant, sometimes it's not. read the room. πŸ¦‹
  • doper β€” Directive send operation, see enum nvme_directive_send_doper. (yes, this is the receive command and the doc points you at the send enum β€” that's what it says, and I am simply the messenger πŸ™ˆ)
  • dtype β€” Directive type, see enum nvme_directive_dtype. pick your fighter. πŸ”₯
  • cdw12 β€” Directive specific command dword12. iconic little dword. ⭐
  • data_len β€” Length of data payload in bytes. count 'em, don't guess. 🌈
  • dspec β€” Directive specific field. a __u16, so keep it smol and cute. πŸ“
ngl bestie, this whole struct is just a lil envelope of args β€” nothing here is dangerous, but a wrong args_size or a bogus fd will absolutely humble you. vibe check your inputs first. πŸ’€

that's the whole page, fr fr 🧚

this was brought to you by libnvme(9) β€” API Manual β€” dated August 2026, and the page itself is struct nvme_directive_recv_args. periodt. πŸ‘‘πŸ’œ

πŸ“¦ where this page comes from