device_has_driver_override(9)
π device_has_driver_override(9) π
okay bestie, welcome to the Kernel API Manual entry for device_has_driver_override β yes it's a real function, yes it's in section 9, and yes it's lowkey the simplest little icon you'll ever meet. it lives down in ./include/linux and honestly? she's giving one-job-and-she-does-it energy. slay.
β¨ NAME β¨
device_has_driver_override β check if a driver override has been set. that's it. that's the whole gig. π
πΈ SYNOPSIS πΈ
bool device_has_driver_override (struct device *dev );
literally one argument, one bool back. no cap, that's the entire function signature β copy it exactly, don't get creative with it. π
π¦ ARGUMENTS π¦
devβ the device to check. like, the actualstruct device *you're curious about. hand her over and she'll tell you what's up. π«Ά
β DESCRIPTION β
Returns true if a driver override has been set for this device. π£
that's the whole description, bestie β she's not mysterious, she's not doing a lore drop. true means yeah, an override got set for this device; otherwise you get false. main character energy of a function that knows exactly what it's about. πβ¨
π₯ SEE ALSO π₯
okay this is the part where the manpage goes full group-chat-forward energy, because the SEE ALSO list is long. buckle up, we're going through all of it, nobody gets left on read. π
the kernel file in question first:
- Kernel file
./include/linux/device.h
then the structs and friends:
struct subsys_interface(9)struct device_attribute(9)struct dev_ext_attribute(9)
then the whole DEVICE_ATTR family reunion (they all showed up, iconic):
DEVICE_ATTR(9)DEVICE_ATTR_RW(9)DEVICE_ATTR_ADMIN_RW(9)DEVICE_ATTR_RW_NAMED(9)DEVICE_ATTR_RO(9)DEVICE_ATTR_ADMIN_RO(9)DEVICE_ATTR_RO_NAMED(9)DEVICE_ATTR_WO(9)DEVICE_ATTR_WO_NAMED(9)DEVICE_ULONG_ATTR(9)DEVICE_INT_ATTR(9)DEVICE_BOOL_ATTR(9)DEVICE_STRING_ATTR_RO(9)
the enums, because we contain multitudes:
enum device_link_state(9)enum dl_dev_state(9)enum device_removable(9)enum device_physical_location_panel(9)enum device_physical_location_vertical_position(9)enum device_physical_location_horizontal_position(9)enum struct_device_flags(9)
the structs, the moment you've all been waiting for:
struct dev_links_info(9)struct dev_msi_info(9)struct device_physical_location(9)struct device(9)struct device_link(9)
and finally the related-function besties, the ones who actually get the override lore:
device_set_driver_override(9)device_match_driver_override(9)device_iommu_mapped(9)dev_name(9)dev_bus_name(9)device_find_child_by_name(9)device_find_any_child(9)device_lock_set_class(9)device_lock_reset_class(9)
not me listing thirty-something SEE ALSO refs and still making it cute π every single one is above, nobody got cut, we ate. π
and that's the page, bestie! sourced from ./include/linux, dated October 2026, in the Kernel API Manual β go check your dev and have the most slay day. π§ππ
π¦ 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