vdo_submit_m...ata_vio_wait(9)
π vdo_submit_m...ata_vio_wait(9) β the Kernel API Manual, bestie edition
okay so real talk, this is vdo_submit_m...ata_vio_wait from the Linux Kernel API manual, and she is lowkey the moment you need when the work queues haven't even been born yet. keep reading, i promise it's giving clutch. β¨
β¨ NAME β¨
vdo_submit_metadata_vio_wait β submit I/O for a metadata vio and wait for it to complete. yes bestie, the waiting is the whole personality. π
πΈ SYNOPSIS πΈ
int vdo_submit_metadata_vio_wait (struct vio *vio ,
physical_block_number_t physical , blk_opf_t operation );
look at that signature, she ate. π
π¦ ARGUMENTS π¦
vioβ the vio you're issuing I/O for. that's her, that's the main character. πphysicalβ the physical block number to read from or write to. like, the actual address on disk, no cap. πoperationβ the type of I/O to perform. what flavour of I/O are we doing today, bestie? π₯
π DESCRIPTION π
so this function works basically the same as __submit_metadata_vio, except β and this is the important part β it blocks until the work is done. like it will literally sit there and wait, fr fr. π
it's the one you reach for when you need to do i/o before work queues and thread completions are set up. early-bird energy. π£β¨
π RETURN π
VDO_SUCCESS or an error. that's it, that's the tea. π
ngl, always check the return value. VDO_SUCCESS is the slay outcome; anything else means something went sideways. π
β SEE ALSO β
kernel file ./drivers/md/dm-vdo/io-submitter.c:
count_all_bios(9)assert_in_bio_zone(9)send_bio_to_device(9)vdo_submit_vio(9)get_bio_list(9)submit_data_vio(9)get_mergeable_locked(9)try_bio_map_merge(9)vdo_submit_data_vio(9)__submit_metadata_vio(9)vdo_make_io_submitter(9)vdo_cleanup_io_submitter(9)vdo_free_io_submitter(9)
the whole friend group, together again. π«Ά
and that's the page! π§ shoutout to ./drivers/md/dm-vdo β the source/version of this little masterpiece β dated October 2026. mwah, iconic, no notes. ππΈ
π¦ 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