driver_for_each_device(9)
πΈ NAME πΈ
driver_for_each_device β iterator for devices bound to a driver. π
okay so hi bestie, welcome to the driver_for_each_device(9) page from the Kernel API Manual π this one is short and iconic: itβs the iterator that goes through a driverβs device list.
β¨ SYNOPSIS β¨
int driver_for_each_device (struct device_driver *drv , struct device *start , void *data , device_iter_t fn );
π ARGUMENTS π
drvβ the driver weβre iterating. πstartβ the device to begin with.dataβ data to pass to the callback. π«Άfnβ the function to call for each device. β¨
π¦ DESCRIPTION π¦
Literally iterate over drvβs list of devices, calling fn for each one. Thatβs the vibe. No cap. π
π SEE ALSO π
- Kernel file:
./drivers/base/driver.cπ§ driver_find_device(9)driver_create_file(9)driver_remove_file(9)driver_register(9)driver_unregister(9)
xoxo, your Kernel API Manual bestie π β source: ./drivers/base, dated October 2026, all about driver_for_each_device(9).
π¦ 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