ib_cm_notify(9)
β¨ ib_cm_notify β¨
okay so bestie, welcome to ib_cm_notify(9) from the Kernel API Manual π β this is the little function that tells the CM (that's the Connection Manager, iykyk) that something happened, so the CM isn't just sitting there like π
πΈ SYNOPSIS πΈ
int ib_cm_notify (struct ib_cm_id *cm_id , enum ib_event_type event );
it returns int, it takes two args, and it is literally not that deep β you pass in the connection and the event, bestie.
π¦ ARGUMENTS π¦
cm_idβ the connection identifier to transition to established π this is the one getting its glow-up into the established state.eventβ the type of event. that's it. that's the arg. what kind of event, you ask? keep reading, babe π
π DESCRIPTION π
so the way this works: you β yes you, the user β are supposed to call this routine to notify the CM about relevant communication events π«Ά. It's giving "please keep the CM in the loop, it hates being left on read" energy.
The events that should be reported to the CM, and when to report them, are:
IB_EVENT_COMM_ESTβ used when a message is received on a connected QP before an RTU has been received π. like, hello?? we're not even at RTU yet and a message is already here, so somebody's gotta tell the CM.IB_EVENT_PATH_MIGβ notifies the CM that the connection has failed over to the alternate path π₯. the connection said "not this path, that one" and the CM needs to know, fr fr.
no cap, those are the only two events listed here. don't go inventing more, bestie π
π§ SEE ALSO π§
Kernel file ./include/rdma/ib_cm.h β and bestie, it's a whole friend group of CM functions, look at this roster π
ib_cm_handler(9)ib_create_cm_id(9)ib_destroy_cm_id(9)ib_cm_listen(9)ib_send_cm_req(9)ib_send_cm_rep(9)ib_send_cm_rtu(9)ib_send_cm_dreq(9)ib_send_cm_drep(9)ib_send_cm_rej(9)ib_prepare_cm_mra(9)ib_cm_init_qp_attr(9)ib_send_cm_sidr_req(9)ib_send_cm_sidr_rep(9)ibcm_reject_msg(9)
mwah π that's the whole page. sourced from ./include/rdma, dated October 2026, and filed under ib_cm_notify(9) β go notify your CM, bestie, it's been waiting πΈβ¨
π¦ 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