device_is_compatible(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 the struct 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:

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