iw_cm_reject(9)
π iw_cm_reject(9) β from the Kernel API Manual, bestie π
Okay so listen. This one's from the Kernel API Manual, and it's a short little icon but it does something extremely important, so pay attention for like two seconds. β¨
πΈ NAME πΈ
iw_cm_reject β reject an incoming connection request. that's it, that's the vibe. you're saying "no thanks bestie" to a connection. π
π¦ SYNOPSIS π¦
int iw_cm_reject (struct iw_cm_id *cm_id , const void *private_data , u8
private_data_len );
look at her. returns an int, takes three things. slay. π
π ARGUMENTS π
cm_idβ the connection identifier that's associated with the request. like, which request are we rejecting? this one. π―private_dataβ pointer to the data you want delivered to the remote peer as part of the reject message. yes you can attach a lil note to your "no". πprivate_data_lenβ the number of bytes in theprivate_dataparameter. please keep these two in sync, i'm begging π
π DESCRIPTION π
So here's the deal: the client can assume that no events will be delivered to the specified IW CM identifier following the return of this function. like, zero. none. the timeline is closed. πͺβ¨
And the private_data buffer is available for reuse when this function returns β so once you get back, that memory is yours again, go wild, reuse it. π«Ά
ngl that "no events after return" bit is the whole point of this function, so don't sleep on it. π
π SEE ALSO π
Kernel file ./include/rdma/iw_cm.h β and all her friends:
iw_cm_handler(9)iw_event_handler(9)iw_create_cm_id(9)iw_destroy_cm_id(9)iw_cm_listen(9)iw_cm_accept(9)iw_cm_connect(9)iw_cm_disconnect(9)iw_cm_init_qp_attr(9)iwcm_reject_msg(9)
and that's the whole page, mwah π this little gem lives in ./include/rdma, dated October 2026, and it's filed under iw_cm_reject(9) β go forth and reject connections with confidence, 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