zfcp_reqlist_find_rm(9)
π zfcp_reqlist_find_rm β the Kernel API Manual, bestie edition β¨
okay so this is a page from the Kernel API Manual (zfcp_reqlist_find_rm(9)) and honestly? it's giving "small function, big responsibilities" π because it does two things at once and holds a lock the whole time. iykyk.
πΈ NAME πΈ
zfcp_reqlist_find_rm β look up a request by its id and then yeet it out of the reqlist π«Ά (that's the whole vibe, no cap)
β¨ SYNOPSIS β¨
struct zfcp_fsf_req * zfcp_reqlist_find_rm (struct zfcp_reqlist *rl ,
u64 req_id );
like yes bestie, it returns a pointer to a struct zfcp_fsf_req * and it takes exactly these two args π
π¦ ARGUMENTS π¦
rlβ the reqlist you're gonna search through and remove the entry from. it's literally the main character here πreq_idβ the request id of the request you're hunting for π (u64, in case you were wondering, and yes that's in the synopsis, slay)
π DESCRIPTION π
so here's the tea β β this function tries to find the FSF request with the specified id, and then removes it from the reqlist. that's it, that's the whole arc π«
the important part tho: the reqlist lock is held during both steps of the operation. both of them. find and remove. no gaps, no "oops i dropped the lock in between" energy π β it's one continuous locked operation and that is genuinely iconic of it tbh.
β RETURN β
- pointer to the FSF request β if the request has been found π
NULLβ if it has not been found π
that's the whole return contract, no extra surprises fr fr.
π SEE ALSO π
all the reqlist besties, in the kernel file ./drivers/s390/scsi/zfcp_reqlist.h:
struct zfcp_reqlist(9)zfcp_reqlist_alloc(9)zfcp_reqlist_isempty(9)zfcp_reqlist_free(9)zfcp_reqlist_find(9)zfcp_reqlist_add(9)zfcp_reqlist_move(9)zfcp_reqlist_apply_for_all(9)
go read them, they're all part of the same friend group π
ngl this one is a tiny function but it's doing lock-safe lookup-and-delete and that's a whole mood. treat the NULL return with respect β it means "not found", not "something broke" π
and that's the page!! π it lives over in ./drivers/s390/scsi in the kernel tree, and the manual page itself is dated October 2026 β so yeah, future-dated kernel docs, we love to see it π§π mwah, go forth and remove requests safely bestie π«Άβ¨
π¦ 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