driver_find(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– driver_find(9) πŸ’–

okay bestie, this page comes straight from the Kernel API Manual, and it's giving β€œfind that driver by name on a bus” energy. no cap, it's a small routine with a big safety warning at the end. 🫢


🌸 NAME 🌸

driver_find β€” locate driver on a bus by its name. literally the whole mission, periodt. πŸ’…

✨ SYNOPSIS ✨

struct device_driver * driver_find (const char *name , const struct
       bus_type *bus );

πŸŽ€ ARGUMENTS πŸŽ€

  • name β€” name of the driver. yep, the string you're hunting for. πŸ”Ž
  • bus β€” bus to scan for the driver. this is the bus you're searching, bestie. 🚌

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so driver_find calls kset_find_obj to iterate over the list of drivers on a bus and find the driver by name. if it finds it, it returns the driver. simple, iconic, ate. ✨

⚠️ safety check, bestie: this routine provides no locking to prevent the driver it returns from being unregistered or unloaded while the caller is using it. the caller is responsible for preventing this. that's not a vibe you can ignore β€” protect that driver yourself, fr fr. 😭

πŸ”₯ SEE ALSO πŸ”₯


and that's the page, bestie! source/version spot: ./drivers/base Β· date: October 2026 Β· from the Kernel API Manual. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from