device_is_compatible(9)
β¨ device_is_compatible(9) β¨
okay so bestie, we're in the Kernel API Manual today and this page is literally the blueprint for device_is_compatible. stay with me, it's a short one and it's giving very useful π
πΈ NAME πΈ
device_is_compatible β matches the 'compatible' property of the device against a string you hand it. that's the whole vibe. π
π¦ SYNOPSIS π¦
bool device_is_compatible (const struct device *dev , const char *compat );
π ARGUMENTS π
devβ pointer to thestruct device. yep, the device you're checking πcompatβ the string to match the'compatible'property with. this is the thing you're comparing against, no cap β¨
π RETURN π
true if it matches, otherwise false. that's it, that's the tea π simple, iconic, done.
π₯ SEE ALSO π₯
okay so there's more lore here, all inside the Kernel file ./include/linux/property.h:
device_is_big_endian(9)fwnode_handle_put(9)struct software_node_ref_args(9)struct property_entry(9)struct software_node(9)
go read those next, iykyk π§π
so yeah, that's the page π short, sweet, and honestly kind of a serve. go match some properties, bestie π«Ά
this one shipped from ./include/linux, dated October 2026 β catch you on the next page, mwah ππ
π¦ 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