zfcp_reqlist_apply_for_all(9)
π 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 argumentdata. so like,fgets the request AND your little care-package pointer. slay.dataβ freely chosen argument; passed through tofas 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:
- struct
zfcp_reqlist(9) zfcp_reqlist_alloc(9)zfcp_reqlist_isempty(9)zfcp_reqlist_free(9)zfcp_reqlist_find(9)zfcp_reqlist_find_rm(9)zfcp_reqlist_add(9)zfcp_reqlist_move(9)
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
- 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