match_dev_by_uuid(9)
β¨ NAME β¨
okay so bestie, quick intro: match_dev_by_uuid β it's literally the callback for finding a partition using its uuid. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int match_dev_by_uuid (struct device *dev , const void *data );
π ARGUMENTS π
devβ the device that the caller passes in. it just shows up and gets checked, no cap π«Άdataβ an opaque pointer to the desiredstruct uuidcmpyou wanna match against. yes bestie, opaque, don't peek inside it, that's the whole point π
π DESCRIPTION π
so the way this works is: it returns 1 if the device matches, and 0 otherwise. that's it. that's the function. binary queen behavior πβ¨
π¦ SEE ALSO π¦
- Kernel file
./block/early-lookup.c devt_from_partuuid(9)match_dev_by_label(9)
ngl, if you're poking around in the block layer early lookup stuff, go read those two, they're like... the sibling functions fr fr π
πΈ mwah, that's a wrap! this little gem lives in ./block and the version/date stamp on it is October 2026 β iconic of it, honestly. bye bestie, go match some uuids πππ¦
π¦ 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