ldm_create_data_partitions(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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 πŸ‘‘:


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