RDMA_REJECT(3)

πŸ’… RDMA_REJECT β€” bestie said no πŸ’…

ok so like. this is a page from the Librdmacm Programmer's Manual (yes, RDMA_REJECT(3), that's the one) and it's about the moment when you have to be the one to say "not today" πŸ’€ no cap.


✨ NAME ✨

rdma_reject β€” Called to reject a connection request.

literally it's the "hey bestie, respectfully… no 🫢" function.


πŸŽ€ SYNOPSIS πŸŽ€

#include <rdma/rdma_cma.h>

int rdma_reject (struct rdma_cm_id *id, const void *private_data,
uint8_t private_data_len);

look at her. so simple. so iconic. πŸ‘‘


🌸 ARGUMENTS 🌸

  • id β€” Connection identifier associated with the request. it's giving "who is this diva asking to connect" energy πŸ’…
  • private_data β€” Optional private data to send with the reject message. optional!! you can just say no with zero explanation, that's valid too πŸ™ˆ
  • private_data_len β€” Specifies the size of the user-controlled data buffer. Note that the actual amount of data transferred to the remote side is transport dependent and may be larger than that requested. so like… the transport might over-share on your behalf, and there's nothing you can do about it 😭 that's just how she is.

πŸ’– DESCRIPTION πŸ’–

Called from the listening side to reject a connection or datagram service lookup request.

so the listening side is the bouncer at the club, and rdma_reject is the "not on the list, sweetie" moment ✨


πŸ”₯ RETURN VALUE πŸ”₯

Returns 0 on success, or -1 on error. If an error occurs, errno will be set to indicate the failure reason.

0 = slayed πŸ’… -1 = something went wrong and errno is holding the receipts, go read them fr fr.


⭐ NOTES ⭐

After receiving a connection request event, a user may call rdma_reject to reject the request. If the underlying RDMA transport supports private data in the reject message, the specified data will be passed to the remote side.

bestie the "if" is doing a LOT of work there β€” if the transport supports it, your private data goes through. if not… well. it does not. that's just the vibe check the transport gives you 🌈

πŸ¦‹ SEE ALSO πŸ¦‹

the whole girl squad honestly 🫢 go read them too, they're all connected, iykyk.


librdmacm β€” 2007-05-15 β€” that's the vintage right there, she's been serving since '07 and she has not missed a day since. periodt. πŸ’œβœ¨

πŸ“¦ where this page comes from