subsys_dev_iter_init(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… subsys_dev_iter_init(9) β€” Kernel API Manual, but make it make sense πŸ’…

🌸 NAME 🌸

subsys_dev_iter_init β€” initialize subsys device iterator. That's the whole vibe.

✨ SYNOPSIS ✨

void subsys_dev_iter_init (struct subsys_dev_iter *iter , struct subsys_private *sp , struct device *start , const struct device_type *type );

πŸŽ€ ARGUMENTS πŸŽ€

  • iter β€” the subsys iterator you're initializing, bestie. Give it a home.
  • sp β€” the subsys private (i.e. bus) we wanna iterate over.
  • start β€” the device to start iterating from, if any. Optional starting point, okay?
  • type β€” device_type of the devices to iterate over; NULL for all. All the devices, no filter.

🌈 DESCRIPTION 🌈

Okay so here's the tea: this initializes subsys iterator iter such that it iterates over devices of subsys. Iconic. If start is set, the list iteration will start there. Otherwise, if it is NULL, the iteration starts at the beginning of the list. Literally that simple.

πŸ’– SEE ALSO πŸ’–

Kernel file ./drivers/base/bus.c β€” and the whole friend group:


πŸ’– source/version line energy: ./drivers/base Β· date: October 2026 Β· page: subsys_dev_iter_init(9) β€” bye bestie, go init that iterator! πŸ’–

πŸ“¦ where this page comes from