dm_parse_devices(9)
π« dm_parse_devices(9) π«
okay so bestie, welcome to the Kernel API Manual β yes that's the manual name, we're fancy here. this page is all about dm_parse_devices(9), a little function that does exactly one job and does it slayfully. let's get into it π
β¨ NAME β¨
dm_parse_devices β parses the "dm-mod.create=" argument π«Ά
like, that's it. that's the whole vibe. it takes that kernel command-line argument and makes sense of it. no cap.
πΈ SYNOPSIS πΈ
int dm_parse_devices (struct list_head *devices , char *str );
look at her go π
the return type is int, she takes two args β genuinely iconic signature.
π¦ ARGUMENTS π¦
devicesβ a list ofstruct dm_device, and its whole purpose in life is to store the parsed information. she's the container, the moment, the main character. β¨strβ the pointer to a string, and that string has to be in this exact format:
<device>[;<device>+]
so: one <device>, then optionally a ; followed by one or more more <device>s, and so on. the + means "keep going", iykyk. π
lowkey important: match the format exactly β <device>[;<device>+] β because that's literally what the function is expecting to chew on. π
π§ SEE ALSO π§
- Kernel file
./drivers/md/dm-init.c str_field_delimit(9)dm_parse_table_entry(9)dm_parse_table(9)dm_parse_device_entry(9)dm_init_init(9)
the whole little parsing friend group honestly π₯ go read them, they're all linked up and they all live near each other in ./drivers/md/dm-init.c.
and that's the page, bestie!! π this came to you from ./drivers/md and it's dated October 2026 β so like, future vibes but make it kernel. mwah, go parse something. πππ
π¦ 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