platform_fin...ce_by_driver(9)
π platform_fin...ce_by_driver(9) β Kernel API Manual, but make it make sense π
okay so bestie, this is a Kernel API Manual page and honestly? it's a short one, so we're gonna get through it together, no cap β¨
πΈ NAME πΈ
platform_find_device_by_driver β literally just go find a platform device that belongs to a given driver. that's the whole job, she's a seeker ππ
β¨ SYNOPSIS β¨
struct device * platform_find_device_by_driver (struct device *start ,
const struct device_driver *drv );
yep, that's the whole signature. returns a struct device *, takes a start pointer and a driver pointer. iconic, minimal, obsessed π«Ά
π¦ ARGUMENTS π¦
startβ the device you wanna start the search from. like, where the scavenger hunt begins, y'know? πdrvβ the device driver you're looking for. this is the one you want to match up with, main character energy fr fr π
π SEE ALSO π
okay so this is the part where the page just hands you the whole friend group π and the kernel file it lives in: Kernel file ./drivers/base/platform.c β that's her home address bestie π‘
and then the extended crew, in order, no skips, no cap:
platform_get_resource(9)devm_platform_get_and_ioremap_resource(9)devm_platform_ioremap_resource(9)devm_platform_ioremap_resource_byname(9)platform_get_irq_affinity(9)platform_get_irq_optional(9)platform_get_irq(9)platform_irq_count(9)devm_platform_get_irqs_affinity(9)platform_get_resource_byname(9)platform_get_irq_byname(9)platform_get_irq_byname_optional(9)platform_add_devices(9)platform_device_put(9)platform_device_alloc(9)platform_device_add_resources(9)platform_device_add_data(9)platform_device_set_of_node(9)platform_device_set_fwnode(9)platform_device_set_of_node_from_dev(9)platform_device_add(9)platform_device_del(9)platform_device_register(9)platform_device_unregister(9)platform_device_register_full(9)__platform_driver_register(9)platform_driver_unregister(9)__platform_driver_probe(9)__platform_create_bundle(9)__platform_register_drivers(9)platform_unregister_drivers(9)platform_match(9)
like, that is a lot of friends and she is not leaving a single one out π go read them if you want the full lore, iykyk π
ngl bestie, that's the whole page. tiny page, big energy. you got this πͺ
source/version: ./drivers/base Β· dated October 2026 Β· page name platform_fin...ce_by_driver(9) β mwah, bye bestie, go find that device ππ§π
π¦ 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