create_mult...metadata_vio(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ create_mult...metadata_vio(9) β€” like, the Kernel API Manual bestie era πŸŽ€

okay so this is one of those kernel API pages from the Kernel API Manual, and it's lowkey a builder function β€” it literally makes a vio for you. icon behaviour honestly. let's get into it πŸ’…


✨ NAME ✨

create_multi_block_metadata_vio β€” Create a vio. that's it, that's the whole vibe 🫢


🌸 SYNOPSIS 🌸

int create_multi_block_metadata_vio (struct vdo *vdo , enum vio_type
vio_type , enum vio_priority priority , void *parent , unsigned int
block_count , char *data , struct vio **vio_ptr );

πŸ’– ARGUMENTS πŸ’–

  • vdo β€” The vdo on which the vio will operate. it's the main character of this whole story ngl πŸ‘‘
  • vio_type β€” The type of vio to create. so, like, which flavour of vio we're making πŸ“
  • priority β€” The relative priority to assign to the vio. yes bestie, this one gets a priority ✨
  • parent β€” The parent of the vio. found family fr fr 🫢
  • block_count β€” The size of the vio in blocks. how big, basically πŸ’€
  • data β€” The buffer. the actual data moment 🌈
  • vio_ptr β€” A pointer to hold the new vio. it's giving "here's an empty spot, put the baby vio in it" πŸ₯Ή

⭐ RETURN ⭐

VDO_SUCCESS or an error. slay or 😭, there is no in-between.


πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives at ./drivers/md/dm-vdo/vio.c β€” go be nosy, iykyk πŸ‘€

and the whole friend group shows up too:


ngl this one's short and sweet β€” but do NOT skip the error case, VDO_SUCCESS is not guaranteed and that's just how it is πŸ’€

kisses bestie πŸ’‹ this page came from ./drivers/md/dm-vdo and it's dated October 2026 β€” mark your calendar, periodt. πŸŽ€πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from