libnvmf_exclusion_add_ctrl(9)
π libnvmf_exclusion_add_ctrl β bestie edition
okay so this is a page straight out of the libnvme API manual, and it's honestly such a vibe: it's the one that takes a controller you're already connected to and goes "boom, you're on the exclusion list now." no cap. let's get into it π«Ά
β¨ NAME β¨
libnvmf_exclusion_add_ctrl β append an entry built from a controller. literally that's the whole job, and she does it well π
π SYNOPSIS π
int libnvmf_exclusion_add_ctrl (struct libnvme_global_ctx *ctx , const
char *name , struct libnvme_ctrl *c );
like, yes, that's the whole signature, we love a concise queen β
πΈ ARGUMENTS πΈ
ctxβ the libnvme global context, bestie. it must not be NULL. do not come at her with a NULL, she will not be having it πnameβ the list name. that's it, that's the argument πcβ a connected controller, and this is the main character right here π the entry'stransport,traddr,trsvcid,subsysnqn, and (when set)host-ifaceare all taken from it. she's built different, and by different i mean from your controller's actual fields π
π¦ DESCRIPTION π¦
so here's the lore: libnvmf_exclusion_add_ctrl builds the exclusion entry from the controller's transport parameters inside libnvme β meaning the caller needs zero knowledge of the on-disk entry format π (you don't have to know how the sausage is stored, king, that's her problem now) β and then it appends it via libnvmf_exclusion_add. and if the list doesn't exist yet? she creates the list. she's proactive like that β¨
it's giving "i'll handle the paperwork for you" and honestly? obsessed π₯
π RETURN π
0on success β slay, we love a clean exit code π-EINVALifctxorcisNULL, or if the controller lacks atransport/traddr/subsysnqnβ like, if the essential info isn't there, she can't build the entry, that's just facts π- negative errno otherwise β some other little gremlin happened, check your errno π
fr fr: pass a NULL inctxorcand you're getting-EINVALback. no drama, just consequences π
and that's the page, bestie π§ from the libnvme API manual, dated October 2026 β go forth and exclude those controllers, you've 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