zfcp_reqlist_apply_for_all(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… zfcp_reqlist_apply_for_all β€” it's giving "main character energy" ✨

okay so bestie, welcome to the Kernel API Manual page for zfcp_reqlist_apply_for_all(9) πŸŽ€ β€” yes we're in the kernel, yes we're in s390/scsi territory, and yes this function is literally the group-chat admin of request lists: it just goes down the whole list and pings everyone. 🫢


✨ NAME ✨

zfcp_reqlist_apply_for_all β€” apply a function to every request. that's it, that's the vibe. every single one. no skips, no "seen", no leaving anybody on read πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void zfcp_reqlist_apply_for_all (struct zfcp_reqlist *rl , void
(*f)(struct zfcp_fsf_req *, void *) , void *data );

copy it exactly, don't @ me, the compiler is watching πŸ‘€


🌸 ARGUMENTS 🌸

  • rl β€” the requestlist that contains the target requests. this is the container, the whole little friend group πŸŽ€
  • f β€” the function to apply to each request ✨ the first parameter of the function will be the target-request; the second parameter is the same pointer as given with the argument data. so like, f gets the request AND your little care-package pointer. slay.
  • data β€” freely chosen argument; passed through to f as second parameter. literally anything you want, it's your emotional support pointer πŸ’œ

πŸ”₯ DESCRIPTION πŸ”₯

So how does it actually do the thing? It uses list_for_each_entry (that's the :c:macro: one, iykyk) to iterate over the lists in the hash-table ⭐

🚨 not a 'safe' variant, so don't modify the list. fr fr. it's not safe β€” do not touch the list while you're in there, no adding, no removing, no sneaky edits. it's giving "look but don't touch" energy πŸ’€

Also highkey important: it holds rl->lock over the entire request-iteration πŸ”’ so the whole walk happens under the lock, the entire time, no cap. the lock stays held, periodt.


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/s390/scsi/zfcp_reqlist.h, plus the whole squad:

bestie these are literally the rest of the friend group, go read them too πŸŒˆπŸ’–


okay that's the whole page, mwah 😘 β€” this iconic little number lives in ./drivers/s390/scsi, dropped October 2026, straight from the Kernel API Manual, and its full government name is zfcp_reqlist_apply_for_all(9) πŸ§šβ€β™€οΈπŸ“ go forth and apply functions to every request, you absolute icon πŸ’…βœ¨

πŸ“¦ where this page comes from