driver_for_each_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 🌈


xoxo, your Kernel API Manual bestie πŸ’– β€” source: ./drivers/base, dated October 2026, all about driver_for_each_device(9).

πŸ“¦ where this page comes from