match_dev_by_label(9)
π match_dev_by_label(9) π
okay bestie, welcome to the Kernel API Manual entry for match_dev_by_label β it's giving callback energy, and it's literally here to help you find a partition using its label. π¦
πΈ NAME πΈ
match_dev_by_label β callback for finding a partition using its label
β¨ SYNOPSIS β¨
int match_dev_by_label (struct device *dev , const void *data );
π ARGUMENTS π
devβ device passed in by the caller. slay, that's the thing being checked.dataβ opaque pointer to the label to match. iykyk, it's the label vibe we're hunting for.
π₯ DESCRIPTION π₯
Returns 1 if the device matches, and 0 otherwise. no cap, that's the whole mood: a match gets a 1, a non-match gets a 0. periodt. π
π SEE ALSO π
- Kernel file
./block/early-lookup.c match_dev_by_uuid(9)devt_from_partuuid(9)
xoxo bestie π«Ά β this one's sourced from ./block, dated October 2026. iconic. β¨
π¦ 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