devt_from_partuuid(9)
π 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βchararray containing ascii UUID. π§devtβdev_tresult. π«
π¦ 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 π₯
- Kernel file
./block/early-lookup.c:match_dev_by_uuid(9),match_dev_by_label(9)π
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
- 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