smc_wr_tx_get_free_slot(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 to smc_link used 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