encode_reco...al_state_7_0(9)
πΎ NAME πΎ
encode_recovery_journal_state_7_0 β bestie, this one encodes the state of a recovery journal. That's it, that's the whole job, and honestly? She does it flawlessly. π
(fun fact: the page header up top is encode_reco...al_state_7_0(9), which is just the function name doing a little stretch β it lives in the Kernel API Manual π)
β¨ SYNOPSIS β¨
void encode_recovery_journal_state_7_0 (u8 *buffer , size_t *offset ,
struct recovery_journal_state_7_0 state );
Okay so look at her signature π β she returns void, takes three things, and she's not here to argue with you about it. Slay.
π«Ά ARGUMENTS π«Ά
bufferβ a buffer to store the encoding. Yes queen, that's where the encoded bytes go πoffsetβ the offset in the buffer at which to encode. She starts writing right there, iykyk πstateβ the recovery journal state to encode. That's thestruct recovery_journal_state_7_0in question, no cap πΈ
π₯ RETURN π₯
VDO_SUCCESS or an error code. That's the whole vibe check β either it ate or it didn't π
π¦ SEE ALSO π¦
Kernel file ./drivers/md/dm-vdo/encodings.c, plus this absolutely iconic lineup of friends (yes, the whole group chat showed up, don't skip anyone π«Ά):
validate_version(9)vdo_validate_header(9)decode_volume_geometry(9)vdo_encode_volume_geometry(9)vdo_parse_geometry_block(9)vdo_compute_new_forest_pages(9)decode_recovery_journal_state_7_0(9)vdo_get_journal_operation_name(9)encode_slab_depot_state_2_0(9)decode_slab_depot_state_2_0(9)vdo_configure_slab_depot(9)vdo_configure_slab(9)vdo_decode_slab_journal_entry(9)allocate_partition(9)make_partition(9)vdo_initialize_layout(9)vdo_uninitialize_layout(9)vdo_get_partition(9)vdo_get_known_partition(9)pack_vdo_config(9)pack_vdo_component(9)unpack_vdo_config(9)unpack_vdo_component_41_0(9)decode_vdo_component(9)vdo_validate_config(9)vdo_destroy_component_states(9)decode_components(9)vdo_decode_component_states(9)vdo_validate_component_states(9)vdo_encode_component_states(9)vdo_encode_super_block(9)vdo_decode_super_block(9)vdo_initialize_component_states(9)vdo_compute_index_blocks(9)vdo_initialize_volume_geometry(9)
and that's the whole page bestie, go encode some journal state π β¨
sign-off szn π β this little masterpiece lives at ./drivers/md/dm-vdo and it's dated October 2026, page title encode_reco...al_state_7_0(9). mwah π
π¦ 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