target_for_each_device(9)
π target_for_each_device(9) π
okay so bestie, this is a page from the Kernel API Manual, and the whole vibe is βletβs loop over configured devices together.β No cap, itβs giving iterator energy. π β¨
π NAME π
target_for_each_device β iterate over configured devices π¦
β¨ SYNOPSIS β¨
int target_for_each_device (int (*fn)(struct se_device *dev, void *data)
, void *data );
πΈ ARGUMENTS πΈ
fnβ the iterator function, aka the little main character that gets called for each device πdataβ pointer to data that will be passed tofn, like a little care package π
π₯ DESCRIPTION π₯
fn must return 0 to continue looping over devices. π«Ά
If fn returns non-zero, it will break from the loop and return that value to the caller. periodt. πβ¨
π SEE ALSO π
- Kernel file
./drivers/target/target_core_device.cβ go peek, iykyk ππ
fr fr, huge shoutout to the source/version ./drivers/target and the date October 2026 β iconic footer behavior, literally. π§ππ
π¦ 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