pack_fragment(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… pack_fragment(9) β€” a Kernel API Manual moment πŸŽ€

okay so bestie, this is the Kernel API Manual page for pack_fragment(9), and lowkey it's iconic. not me being obsessed with a packing function, but here we are. this one packs a data_vio's fragment into the compressed block where it's already known to fit. vibe check: it fits, periodt. ✨


🌸 NAME 🌸

pack_fragment β€” pack a data_vio's fragment into the compressed block in which it is already known to fit. that's the whole name, fr fr. πŸ’…

✨ SYNOPSIS ✨

block_size_t pack_fragment (struct compression_state *compression ,
struct data_vio *data_vio , block_size_t offset , slot_number_t slot ,
struct compressed_block *block );

πŸŽ€ ARGUMENTS πŸŽ€

  • compression β€” the agent's compression_state to pack in to. 🫢
  • data_vio β€” the data_vio to pack. literally the main character here. ⭐
  • offset β€” the offset into the compressed block at which to pack the fragment. πŸ“
  • slot β€” the slot number in the compressed block. πŸ”’
  • block β€” the compressed block which will be written out when batch is fully packed. πŸ’–

πŸ’– RETURN πŸ’–

the new amount of space used. that's it, that's the return. no cap. 🫢

πŸ¦‹ SEE ALSO πŸ¦‹

go read these next, iykyk:


cute sign-off time, bestie: this page came from the ./drivers/md/dm-vdo source/version and is dated October 2026. πŸ«Άβœ¨πŸ’…

πŸ“¦ where this page comes from