libnvmf_exc...ist_for_each(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… 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 .conf file. and here's the tea: name is the basename without the .conf suffix. so don't come for me looking for the extension, it's not there πŸ’…
  • user_data β€” your own caller context, passed straight through to callback. 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