libnvme_update_block_size(9)

πŸ“¦ version 3.2, in arch rolling

πŸ’… libnvme_update_block_size(9) πŸ’…

Okay bestie, welcome to the libnvme API manual β€” this page is all about libnvme_update_block_size(9), and we’re gonna get you comfy with it. ✨

✨ NAME ✨

libnvme_update_block_size β€” update the block size. That’s the whole vibe. πŸ’…

πŸŽ€ SYNOPSIS πŸŽ€

int libnvme_update_block_size (struct libnvme_transport_handle *hdl ,
       int block_size );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • hdl β€” the transport handle. 🫢 The thing you’re passing through.
  • block_size β€” the new block size. πŸ“ Fresh size, who dis.

πŸ’– DESCRIPTION πŸ’–

Okay so here’s the tea: you’re notifying the kernel blkdev to update its block size after a block size change. Like, β€œhey bestie, the block size changed, pls refresh accordingly.” πŸ’–

Heads up, bestie: this should only be used for namespace handles, not controllers. Do not come for controllers with this one, fr fr. πŸš«πŸ‘‘

🌈 RETURN 🌈

Returns 0 if the block size was updated, or a negative error code otherwise. Simple as that, bestie. ✨


This libnvme_update_block_size(9) page comes from the libnvme API manual, dated October 2026. That’s the sign-off β€” mwah! πŸ’‹βœ¨

πŸ“¦ where this page comes from