as_repair_completion(9)
π as_repair_completion(9) β the Kernel API Manual glow-up π
okay so bestie, welcome to the Kernel API Manual β¨ and today's main character is as_repair_completion(9) β and yes, it's exactly as niche and iconic as it sounds π
β¨ NAME β¨
as_repair_completion β converts a generic completion into a repair_completion. that's it, that's the whole vibe π¦
πΈ SYNOPSIS πΈ
struct repair_completion * as_repair_completion (struct vdo_completion
*completion );
like, you hand it a struct vdo_completion * and it hands you back a struct repair_completion *. glow-up in one function call π«
π«Ά ARGUMENTS π«Ά
completionβ the completion you wanna convert. that's the one. the only one. give it here π
π RETURN π
it returns the repair_completion, obviously π
the converted one. no cap, that's literally the whole point π
π SEE ALSO π
so this little function lives in the kernel file ./drivers/md/dm-vdo/repair.c and it's lowkey part of a whole friend group bestie, here's the entire squad π«Ά:
abort_repair(9)abort_on_error(9)drain_slab_depot(9)flush_block_map_updates(9)handle_page_load_error(9)unmap_entry(9)remove_out_of_bounds_entries(9)process_slot(9)rebuild_reference_counts_from_page(9)page_loaded(9)fetch_page(9)rebuild_from_leaves(9)process_entry(9)advance_points(9)before_recovery_point(9)get_entry(9)validate_recovery_journal_entry(9)add_slab_journal_entries(9)vdo_replay_into_slab_journals(9)find_entry_starting_next_page(9)get_recovery_journal_block_header(9)is_valid_recovery_journal_block(9)is_exact_recovery_journal_block(9)find_recovery_journal_head_and_tail(9)unpack_entry(9)append_sector_entries(9)extract_new_mappings(9)compute_usages(9)vdo_repair(9)
like, twenty-nine entries, we love a full cast π₯ iykyk π
ngl bestie, this is a header-only situation β there are no extra options, no environment variables, no exit statuses, no bugs and no warnings hiding in here. it's giving "short and sweet" and honestly? we respect it π
and that's a wrap, bestie π brought to you by the fine folks over at ./drivers/md/dm-vdo π¦ dated October 2026 β¨ and yes, the page is literally called as_repair_completion(9) β slay, periodt π
π
π¦ 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