parse_device_config(9)
π parse_device_config(9) β a Kernel API Manual moment
okay bestie, welcome to the parse_device_config(9) page β¨ this is the one where we take a raw dmsetup table and turn it into an actual struct device_config β like, the table walks in wearing its string-y little outfit and leaves as a fully allocated struct. glow-up of the century, honestly π¦
β¨ NAME β¨
parse_device_config β literally converts the dmsetup table into a struct device_config. that's the whole vibe. no cap π
πΈ SYNOPSIS πΈ
int parse_device_config (int argc , char **argv , struct dm_target *ti ,
struct device_config **config_ptr );
that's the whole signature, character for character, don't @ me π«Ά
π ARGUMENTS π
argcβ the number of table values. yes, the count. the little number bestie π€argvβ the array of table values. all the strings, lined up and ready πtiβ the target structure for this table. it's the target, main character energy πconfig_ptrβ a pointer to return the allocated config. the config comes out through here, she's being handed back to you π
β RETURN β
VDO_SUCCESS or an error code. that's it. slay or not slay, no in-between π
π SEE ALSO π
so there's a whole friend group here, and we're not leaving anyone out β not a single one, periodt π
- Kernel file:
./drivers/md/dm-vdo/dm-vdo-target.c free_device_config(9)get_version_number(9)parse_bool(9)parse_memory(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)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 that's the entire squad and every single one of them is iconic in her own way. go read them too, iykyk π₯
that's the page, bestie π this one lives in ./drivers/md/dm-vdo, dated October 2026, and it's filed under parse_device_config(9) β catch you in the next manpage, 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