vdo_drain_packer(9)
π vdo_drain_packer(9) β the kernel API manual, but make it make sense π
okay so bestie, welcome to vdo_drain_packer(9), a real page from the kernel API manual and honestly? it's giving "short but iconic." no cap, we're gonna get through this together in like two minutes. π
β¨ NAME β¨
vdo_drain_packer β drains the packer by literally not letting any more VIOs get into the packer, and then flushing. that's it. that's the whole vibe. π¦
think of it like closing the door to the party so nobody else can come in, and then clearing the room. main character energy fr fr.
πΈ SYNOPSIS πΈ
void vdo_drain_packer (struct packer *packer , struct vdo_completion
*completion );
that's the whole signature, exactly as written, don't @ me. π
π«Ά ARGUMENTS π«Ά
packerβ the packer you wanna drain. like, this one. the one you're pointing at. our little guy. π₯Ίcompletionβ the completion that gets finished once the packer has actually drained. so like, when the draining is done, this is what gets the "we're done here" tap on the shoulder. β¨
lowkey important: the completion is what tells the rest of the world the drain actually finished. it's not decorative, bestie, it's the whole callback situation. π«‘
π SEE ALSO π
the kernel file lives right here: ./drivers/md/dm-vdo/packer.c β go read it, it's a whole journey. π
and here's the entire crew, no cap, every single one, exactly as listed:
vdo_get_compressed_block_fragment(9)assert_on_packer_thread(9)insert_in_sorted_list(9)make_bin(9)vdo_make_packer(9)vdo_free_packer(9)get_packer_from_data_vio(9)vdo_get_packer_statistics(9)abort_packing(9)release_compressed_write_waiter(9)finish_compressed_write(9)add_to_bin(9)remove_from_bin(9)initialize_compressed_block(9)pack_fragment(9)compressed_write_end_io(9)write_bin(9)add_data_vio_to_packer_bin(9)select_bin(9)vdo_attempt_packing(9)check_for_drain_complete(9)write_all_non_empty_bins(9)vdo_flush_packer(9)vdo_remove_lock_holder_from_packer(9)vdo_increment_packer_flush_generation(9)vdo_resume_packer(9)vdo_dump_packer(9)
like, that's the entire group chat right there. π
and that's the page!! mwah π
cute little sign-off for the record: this one comes from ./drivers/md/dm-vdo, dated October 2026, and you were reading vdo_drain_packer(9) the whole time. slay. πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms