ldm_get_vnum(9)
πΈ NAME πΈ
okay bestie, welcome to ldm_get_vnum(9) from the Kernel API Manual β¨ this one converts a variable-width, big endian number into cpu order. no cap π
π¦ SYNOPSIS π¦
u64 ldm_get_vnum (const u8 *block );
π ARGUMENTS π
blockβ pointer to the variable-width number to convert π«Ά that's the whole assignment, bestie.
β¨ DESCRIPTION β¨
okay so large numbers in the LDM Database are often stored in a packed format. each number is prefixed by a one byte width marker. all numbers in the database are stored in big-endian byte order. this function reads one of these numbers and returns the result. periodt. π₯
β οΈ N.B. this function DOES NOT perform any range checking, though the most it will read is eight bytes. like, she is literally not doing range-checking extra credit π the read cap is eight bytes and that's the vibe.
π RETURN π
nβ a number.0β zero, or an error occurred.
π SEE ALSO π
Kernel file ./block/partitions/ldm.c β and here's the whole bestie lineup, no skips, no cap:
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_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)
catch u later, bestie β source/version:./block/partitions, date:October 2026, page:ldm_get_vnum(9)π
π¦ 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