smc_wr_tx_get_free_slot(9)
π smc_wr_tx_get_free_slot(9) π
okay bestie, this one comes from the Kernel API Manual and it's lowkey iconic: it hands you the buffer for message assembly and sets up the info for pending transmit tracking. periodt. β¨
π NAME π
smc_wr_tx_get_free_slot β returns buffer for message assembly, and sets info for pending transmit tracking. no cap, that's the whole vibe π
β¨ SYNOPSIS β¨
int smc_wr_tx_get_free_slot (struct smc_link *link , smc_wr_tx_handler
handler , struct smc_wr_buf **wr_buf , struct smc_rdma_wr **wr_rdma_buf
, struct smc_wr_tx_pend_priv **wr_pend_priv );
π ARGUMENTS π
linkβ pointer tosmc_linkused to later send the message. literally the link bestie π«Άhandlerβ send completion handler function pointer. it's giving callback energy π₯wr_bufβ out value, returns pointer to message buffer. your message-assembly moment πwr_rdma_bufβ out value, returns pointer to rdma work request. rdma bestie, we see you πwr_pend_privβ out value, returns pointer serving as handler context. the lil context holder π
πΈ RETURN πΈ
0 on success, or -errno on error. that's it, no cap β
π¦ SEE ALSO π¦
- Kernel file
./net/smc/smc_wr.cβ go peek the source, iykyk π
mwah π this page is from ./net/smc and dated October 2026 β catch u later, 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