libnvmf_exc...ist_for_each(9)
π libnvmf_exclusion_list_for_each β like, the whole vibe
okay so bestie, this is a page straight out of the libnvme API manual, and it's honestly so much less scary than the name makes it look. We're iterating over exclusion list names. That's it. That's the whole gig. π
β¨ NAME β¨
libnvmf_exclusion_list_for_each β literally just iterate over exclusion list names π¦
β¨ SYNOPSIS β¨
int libnvmf_exclusion_list_for_each (struct libnvme_global_ctx *ctx ,
void (*callback)(const char *name, void *user_data) , void *user_data );
that's the whole signature, no cap. three args, one mission. π
β¨ ARGUMENTS β¨
ctxβ the libnvme global context. and like, it must not be NULL, okay? that's non-negotiable, fr fr πcallbackβ gets called for each.conffile. and here's the tea:nameis the basename without the.confsuffix. so don't come for me looking for the extension, it's not there πuser_dataβ your own caller context, passed straight through tocallback. it's giving "bring your own vibes." π«Ά
β¨ RETURN β¨
0 on success, negative errno on error. π
and big heads up: it also returns 0 when the directory does not exist β because nothing is excluded, so likeβ¦ mission accomplished? nothing to iterate, no problem, slay β¨
π tiny reminder bestie: ctx must not be NULL. that's the one thing we do not play about.
and that's the page! πΈ sign-off time: this icon was brought to you by the libnvme API manual, dated October 2026. periodt. ππ
π¦ 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