devt_from_partuuid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… devt_from_partuuid β€” Kernel API Manual (section 9)

Okay bestie, welcome to the Kernel API Manual, section 9. This is the page for devt_from_partuuid(9) β€” the little lookup bestie that finds a partition’s dev_t by its UUID. No cap, let’s get into it. πŸ¦‹

✨ NAME ✨

devt_from_partuuid β€” looks up the dev_t of a partition by its UUID. πŸ’–

🌸 SYNOPSIS 🌸

int devt_from_partuuid (const char *uuid_str , dev_t *devt );

πŸŽ€ ARGUMENTS πŸŽ€

  • uuid_str β€” char array containing ascii UUID. 🧚
  • devt β€” dev_t result. πŸ’«

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so here’s the tea: the function will return the first partition which contains a matching UUID value in its partition_meta_info struct. πŸ’… And bestie, note this: it does not search by filesystem UUIDs. πŸ™ˆ

If uuid_str is followed by a /PARTNROFF=d, then the number will be extracted and used as an offset from the partition identified by the UUID. 🎯

Returns 0 on success or a negative error code on failure. Periodt. ✨

πŸ”₯ SEE ALSO πŸ”₯


xoxo, bestie πŸ’– this page’s source/version is ./block, dated October 2026, and it’s devt_from_partuuid(9) β€” slay and read responsibly. 🫢

πŸ“¦ where this page comes from