libnvme_ctr...scovery_ctrl(9)
β¨ libnvme_ctrl_get_discovery_ctrl β¨
okay bestie, so this is a page from the libnvme API manual β the header up top literally reads libnvme_ctr...scovery_ctrl(9) because apparently even manpage titles get the truncation treatment sometimes π but like, the actual function we're talking about is libnvme_ctrl_get_discovery_ctrl, and ngl it's one of those tiny little getters that justβ¦ vibes.
πΈ NAME πΈ
libnvme_ctrl_get_discovery_ctrl β Get discovery_ctrl.
like, it gets the discovery_ctrl. that's the whole job. she's an icon, she's a simple queen, she does one thing π
π¦ SYNOPSIS π¦
bool libnvme_ctrl_get_discovery_ctrl (const struct libnvme_ctrl *p );
no cap, that's the entire signature β copy it exactly, don't come for me about the spacing, that's how the manual has it π«Ά
π ARGUMENTS π
pβ thestruct libnvme_ctrlinstance you wanna query. that's your girl, your source of truth, the thing you're asking about. it'sconst, so we're just looking, not touching π
β RETURN β
it hands you back the value of the discovery_ctrl field. (the return type is bool, so it's a yes/no situation, lowkey very straightforward energy.)
π reminder: this is a getter in the libnvme API manual, so keep the exact names and types in your code βlibnvme_ctrl_get_discovery_ctrl,const struct libnvme_ctrl *p,discovery_ctrl,bool. they're all doing their little main character thing and they need to stay spelled exactly like that β¨
and that's the whole page, bestie! short, sweet, slay. this one's from the libnvme API manual, dated October 2026 β so like, very much current, very much official ππ¦β¨ bye pookie π«Ά
π¦ 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