iw_cm_accept(9)
π
iw_cm_accept(9) β like, the kernel API manual for iw_cm_accept, bestie π
okay so real talk: this page lives in the Kernel API Manual, and the function it's hyping up is iw_cm_accept(9). yes the name is the same as the page, that's just how manpages do. sit down, grab a strawberry drink π, we're learning how to accept an incoming connect request and honestly? iconic behavior.
β¨ NAME β¨
iw_cm_accept β the function you call to accept an incoming connect request. that's it. that's the whole vibe. she says yes π
β¨ SYNOPSIS β¨
int iw_cm_accept (struct iw_cm_id *cm_id , struct iw_cm_conn_param
*iw_param );
look at her. two params, returns an int, no cap. π¦
β¨ ARGUMENTS β¨
cm_idβ the IW CM identifier that's associated with the connection request π this is the whole main character of the call.iw_paramβ a pointer to a structure that holds the connection establishment parameters. yep, all the setup details live in there π
β¨ DESCRIPTION β¨
okay so here's the lore:
the cm_id you're passing in will have been provided in the event data for a CONNECT_REQUEST event β so like, you didn't just make it up, it came from the event π«Ά
subsequent events related to this connection will be delivered to the specified IW CM identifier prior to β and may occur prior to β the return of this function. so yeah, prepare yourself, the events are already otw before you even get your return value π
and here's the important part, so listen up:
if this function returns a non-zero value, the client can assume that no events will be delivered to the specified IW CM identifier. like, zero. none. the connection request is a ghost π
so check that return value, bestie. always. πΈ
β¨ SEE ALSO β¨
everything else in the friend group β they all show up together, no gatekeeping:
- the kernel file
./include/rdma/iw_cm.hπ iw_cm_handler(9)iw_event_handler(9)iw_create_cm_id(9)iw_destroy_cm_id(9)iw_cm_listen(9)iw_cm_reject(9)iw_cm_connect(9)iw_cm_disconnect(9)iw_cm_init_qp_attr(9)iwcm_reject_msg(9)
all lowercase, all in a row, a whole squad. go read 'em, iykyk π
okay that's the whole page, mwah π and for the little sign-off: this one's filed under ./include/rdma and dated October 2026 β so like, future vibes only, 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