nvme_ns_rescan(2)

✨ nvme_ns_rescan β€” bestie edition ✨

okay so this is a page from the libnvme API manual, and it's about nvme_ns_rescan(2). yes, a whole man page. for one function. and honestly? it's giving "short but mighty" πŸ’…


🌸 NAME 🌸

nvme_ns_rescan β€” kick off a controller rescan πŸŒ€

πŸŽ€ SYNOPSIS πŸŽ€

int nvme_ns_rescan (int fd );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • fd β€” the file descriptor of your nvme device, bestie. that's the whole vibe 🌈

πŸ’– DESCRIPTION πŸ’–

okay listen. this one has a rule and the rule is only send it to controller handles, not to namespaces. like, it's literally right there. do not pass a namespace fd, queen, that's not the assignment πŸ™ˆ

⭐ RETURN ⭐

  • 0 β€” slay, a rescan was initiated ✨
  • -1 β€” with errno set, otherwise πŸ’€

no cap: if it comes back -1, go check errno. that's where the tea is β˜•

and that's literally it, the whole page, short and iconic πŸ‘‘

signing off 🫢 this was libnvme API manual energy, nvme_ns_rescan, dated July 2026 β€” periodt. πŸ’œ

πŸ“¦ where this page comes from