libnvme_reread_partitions(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… libnvme_reread_partitions β€” the libnvme API manual, bestie πŸŽ€

okay so this one is from the libnvme API manual and it's literally the glow-up-your-partition-table function. get into it ✨


🌸 NAME 🌸

libnvme_reread_partitions β€” reread the partition table, no cap πŸ‘‘


✨ SYNOPSIS ✨

int libnvme_reread_partitions (struct libnvme_transport_handle *hdl );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • hdl β€” your transport handle, bestie. that's the whole vibe. 🫢

🧚 DESCRIPTION 🧚

so basically you're asking the kernel to reread the partition table of a namespace πŸŽ€ β€” like, "hey bestie, look at this again, it changed." super useful, for example after the namespace has become readable again πŸ’–.

⚠️ but listen β€” this should only be used for namespace handles, not controllers. fr fr. don't do it to controllers, that's not the vibe πŸ™ˆ

⭐ RETURN ⭐

  • 0 β€” slay, the partition table was reread πŸ’…
  • a negative error code β€” not slay, something went sideways 😭

and that's the whole page, periodt πŸ’œ β€” brought to you by the libnvme API manual, dated October 2026, libnvme_reread_partitions(9), signing off with main character energy πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from