parse_memory(9)
π parse_memory(9) β a Kernel API Manual moment π
okay so bestie, welcome to the parse_memory page, straight out of the Kernel API Manual β¨ this one is short and sweet and honestly kind of a slay.
πΈ NAME πΈ
parse_memory β literally just parses a string into an index memory value. that's it. that's the whole vibe. π
β¨ SYNOPSIS β¨
int parse_memory (const char *memory_str , uds_memory_config_size_t
*memory_ptr );
π¦ ARGUMENTS π¦
memory_strβ the string value you want converted into a memory value. it's giving "raw text that needs a glow-up" π«Άmemory_ptrβ a pointer where the memory value gets returned. so like, this is where the answer lands π
β RETURN β
VDO_SUCCESS or an error. no cap β those are the only two outcomes, bestie π
π SEE ALSO π
the kernel file lives at ./drivers/md/dm-vdo/dm-vdo-target.c, and here's the whole friend group β yes, all of them, i'm not skipping anybody π
free_device_config(9)get_version_number(9)parse_bool(9)parse_slab_size(9)process_one_thread_config_spec(9)parse_one_thread_config_spec(9)parse_thread_config_string(9)process_one_key_value_pair(9)parse_one_key_value_pair(9)parse_key_value_pairs(9)parse_optional_arguments(9)handle_parse_error(9)parse_device_config(9)get_thread_id_for_phase(9)advance_phase(9)finish_operation_callback(9)decode_from_super_block(9)decode_vdo(9)pre_load_callback(9)get_bit_array_size(9)grow_bit_array(9)allocate_instance(9)check_may_grow_physical(9)grow_layout(9)validate_new_device_config(9)write_super_block_for_suspend(9)suspend_callback(9)was_new(9)requires_repair(9)get_load_type(9)load_callback(9)handle_load_error(9)write_super_block_for_resume(9)resume_callback(9)grow_logical_callback(9)handle_logical_growth_error(9)perform_grow_logical(9)copy_partition(9)grow_physical_callback(9)handle_physical_growth_error(9)perform_grow_physical(9)apply_new_vdo_configuration(9)
ngl this page is tiny but it ate. go read the whole crew above if you want the full lore π§
and that's a wrap, bestie!! π this one came from ./drivers/md/dm-vdo and it's dated October 2026 β so mark your calendar, 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