match_dev_by_uuid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 desired struct uuidcmp you 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 πŸ¦‹


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