ldm_create_data_partitions(9)
okay so bestie, welcome to the Kernel API Manual entry for ldm_create_data_partitions π
this one is literally about creating data partitions for this device, and itβs giving βquiet little kernel helper with main character energyβ β¨
π NAME π
ldm_create_data_partitions β create data partitions for this device π¦
β¨ SYNOPSIS β¨
bool ldm_create_data_partitions (struct parsed_partitions *pp , const
struct ldmdb *ldb );
π ARGUMENTS π
struct parsed_partitions *ppβ the list of the partitions parsed so far, bestie π«Άconst struct ldmdb *ldbβ the cache of the database structures, periodt π
πΈ DESCRIPTION πΈ
okay so the database contains ALL the partitions for ALL disk groups β it is lowkey doing the MOST β so we need to filter out this specific disk π₯ using the diskβs object id, we can find all the partitions in the database that belong to this disk, no cap π
then we add each partition in our database to the parsed_partitions structure β¨ every partition gets its moment, fr fr.
N.B. this function creates the partitions in the order it finds partition objects in the linked list β order matters, bestie, periodt π«Ά
π« RETURN π«
this section is literally blank in the original page β no return description, no extra notes, just vibes and an empty section π no cap.
π₯ SEE ALSO π₯
the kernel file is ./block/partitions/ldm.c, and the whole sibling squad is right here π:
ldm_parse_privhead(9)ldm_parse_tocblock(9)ldm_parse_vmdb(9)ldm_compare_privheads(9)ldm_compare_tocblocks(9)ldm_validate_privheads(9)ldm_validate_tocblocks(9)ldm_validate_vmdb(9)ldm_validate_partition_table(9)ldm_get_disk_objid(9)ldm_relative(9)ldm_get_vnum(9)ldm_get_vstr(9)ldm_parse_cmp3(9)ldm_parse_dgr3(9)ldm_parse_dgr4(9)ldm_parse_dsk3(9)ldm_parse_dsk4(9)ldm_parse_prt3(9)ldm_parse_vol5(9)ldm_parse_vblk(9)ldm_ldmdb_add(9)ldm_frag_add(9)ldm_frag_free(9)ldm_frag_commit(9)ldm_get_vblks(9)ldm_free_vblks(9)ldm_partition(9)
cute little sign-off: source/version ./block/partitions, dated October 2026, page ldm_create_data_partitions(9) β bye bestie, go slay those partitions ππ
π¦ 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