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 ofstruct 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, seeenum 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, seeenum 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 wrongargs_sizeor a bogusfdwill 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
- fedora 44: libnvme-doc 1.16.2-1.fc44 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms