srp_claim_req(9)
π 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 notNULL, only take ownership for this SCSI device. so basically itβs the βonly for this deviceβ filter, iykyk.scmndβ ifNULL, take ownership ofreq->scmnd. if itβs notNULL, only take ownership ofreq->scmndif it equalsscmnd. 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 π¦
- Kernel file:
./drivers/infiniband/ulp/srp/ib_srp.cβ thatβs where the source lives, bestie π srp_destroy_fr_pool(9)srp_create_fr_pool(9)srp_fr_pool_get(9)srp_fr_pool_put(9)srp_destroy_qp(9)srp_del_scsi_host_attr(9)srp_connected_ch(9)srp_free_req(9)srp_map_data(9)srp_post_send(9)srp_tl_err_work(9)srp_change_queue_depth(9)srp_conn_unique(9)srp_parse_in(9)
π
xoxo, your kernel bestie β source/version: ./drivers/infiniband/ulp/srp, date: October 2026, manual: srp_claim_req(9). periodt. β¨
π¦ 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