LIBNVMF_DISCOVERY_ARGS_INIT_DEFAULTS-LIBNVME3(2)
β¨ NAME β¨
ok so this is libnvmf_discovery_args_init_defaults β the little function that just sets all the fields to their defaults π β straight out of the libnvme API manual.
πΈ SYNOPSIS πΈ
void libnvmf_discovery_args_init_defaults (struct libnvmf_discovery_args
*p );
π ARGUMENTS π
pβ thestruct libnvmf_discovery_argsinstance you wanna initialise, bestie. that's it, that's the whole vibe π«Ά
π¦ DESCRIPTION π¦
okay so what this does is, like, it goes through and sets every single field that's got a default annotation on it to its compile-time default value. every one. no cap β¨.
and here's the slay part β it's called automatically by libnvmf_discovery_args_new, so most of the time you don't even gotta think about it π. but you can call it directly too, if you wanna reset an instance back to its defaults without reallocating it. lowkey iconic, right? π
fr fr, if you're sitting there wondering "do i need to call this myself" β probably not, libnvmf_discovery_args_new already handled it for you. but the option's there and it's cute π
kisses, bestie π this was the libnvme API manual, dated October 2026 β go forth and init those defaults, you got this π§β¨
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms