srp_claim_req(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so welcome to srp_claim_req(9) from the Kernel API Manual β€” this one is short and iconic, bestie.

srp_claim_req β€” take ownership of the scmnd associated with a request. that’s the whole assignment, periodt πŸ’…


✨ SYNOPSIS ✨

here’s the signature, and yes you copy it exactly β€” no freestyling, no cap:

struct scsi_cmnd * srp_claim_req (struct srp_rdma_ch *ch , struct srp_request *req , struct scsi_device *sdev , struct scsi_cmnd *scmnd );

πŸŽ€ ARGUMENTS πŸŽ€

  • ch β€” SRP RDMA channel. πŸ’–
  • req β€” SRP request. πŸŽ€
  • sdev β€” if it’s not NULL, only take ownership for this SCSI device. so basically it’s the β€œonly for this device” filter, iykyk.
  • scmnd β€” if NULL, take ownership of req->scmnd. if it’s not NULL, only take ownership of req->scmnd if it equals scmnd. literally matching energy only 🫢

🌸 DESCRIPTION 🌸

Return value: either NULL or a pointer to the SCSI command the caller became owner of.

that’s it. that’s the description. short, sweet, and slay πŸ’…βœ¨


πŸ¦‹ SEE ALSO πŸ¦‹


πŸ’… xoxo, your kernel bestie β€” source/version: ./drivers/infiniband/ulp/srp, date: October 2026, manual: srp_claim_req(9). periodt. ✨

πŸ“¦ where this page comes from