ldm_frag_add(9)
π ldm_frag_add(9) β the kernel API manual bestie
okay so this is ldm_frag_add, a kernel API function, and we're gonna get you fluent in it. no cap. π«Ά
β¨ NAME β¨
ldm_frag_add β adds a VBLK fragment to a list. that's it, that's the whole vibe check.
πΈ SYNOPSIS πΈ
bool ldm_frag_add (const u8 *data , int size , struct list_head *frags
);
yes the formatting is a little chaotic, we love her anyway π
π ARGUMENTS π
dataβ the raw fragment, the actual little guy you're adding to the list πsizeβ how big that raw fragment is π«fragsβ the linked list of VBLK fragments, aka where all the pieces hang out together π
π¦ DESCRIPTION π¦
so here's the situation, bestie: fragmented VBLKs might not be consecutive in the database. like, they're just not sitting next to each other. rude, honestly. π
so because of that, they get placed in a list β that way they can be pieced together later. it's giving puzzle energy, it's giving "we'll deal with this eventually," and honestly? iconic. π§©β¨
β RETURN β
ngl the RETURN section here is literally empty. no documented return value, no notes, nothing. we're moving on, periodt. π
π₯ SEE ALSO π₯
kernel file ./block/partitions/ldm.c β and now, the whole friend group, in order, no skips:
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_create_data_partitions(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_free(9), ldm_frag_commit(9), ldm_get_vblks(9), ldm_free_vblks(9), ldm_partition(9)
like I said β the entire group chat. π
lowkey reminder: fragmented VBLKs may not be consecutive in the database, which is the whole reason this list situation exists. that's the lore. π
kiss kiss, this page lives under ./block/partitions, dated October 2026, and it's ldm_frag_add(9) forever and always ππ§ββοΈ
π¦ 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