libnvme(9)
π NAME π
okay bestie, so like β struct nvme_dev_self_test_args is literally the little argument bundle you hand over when you wanna run the NVMe Device Self Test command. that's it, that's the whole vibe. β¨
πΈ SYNOPSIS πΈ
struct nvme_dev_self_test_args {
__u32 *result;
int args_size;
int fd;
__u32 timeout;
__u32 nsid;
enum nvme_dst_stc stc;
};
π Members π
here's the tea on every single field, no skipping, i would never π«Ά
resultβ this one's where the command completion result lands, straight from CQE dword0. it's a pointer, so like, it points at the tea. πargs_sizeβ the size ofstruct nvme_dev_self_test_args. yes it's telling you how big it is. iconic self-awareness honestly. β¨fdβ file descriptor of the nvme device. your little handle to the actual thing. πtimeoutβ timeout in ms. milliseconds bestie, so don't go thinking it's seconds and then get all surprised. πnsidβ Namespace ID to test. that's which namespace is getting the self-test glow-up. πstcβ Self test code, seeenum nvme_dst_stc. go peek at that enum for the actual codes, i'm not gonna make them up for you. π
lowkey the whole struct is just "here's my device, here's my namespace, here's the test i want, here's how long i'm willing to wait" and honestly? relatable main character energy. π
and that's the page!! this was the libnvme(9) API Manual situation, dated August 2026, and the page was all about struct nvme_dev_self_test_args the whole time. mwah, love u, go run a self test responsibly. ππ¦πΈπ§π
π¦ 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