ib_send_cm_dreq(9)
π ib_send_cm_dreq β from the Kernel API Manual (yes bestie, the kernel one)
okay so picture this: you've got a connection, it's been cute, it's been doing its thing, and now it's time to say bye. This little icon right here, ib_send_cm_dreq, is literally the "we need to talk" text β it sends a disconnection request for a connection that already exists. No cap, that's the whole job. πβ¨
β¨ SYNOPSIS β¨
int ib_send_cm_dreq (struct ib_cm_id *cm_id , const void *private_data ,
u8 private_data_len );
the way this signature just sits there being all three-argument and tidy π returns an int, takes your connection id, your optional lil private data blob, and how big that blob is. slay.
π«Ά ARGUMENTS π«Ά
cm_idβ the connection identifier tied to the connection you're releasing. it's giving "which one of my connections am I breaking up with" energy. main character of this call, honestly. πprivate_dataβ optional user-defined private data that gets sent along with the disconnection request message. optional!! you don't have to send anything. but if you do, it rides shotgun with the dreq. π¦private_data_lenβ the size of that private data buffer, in bytes. it's au8, so keep it smol and keep it honest. πΈ
π SEE ALSO π
Kernel file ./include/rdma/ib_cm.h β go look at it, iykyk π β plus this whole friend group right here:
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_drep(9)ib_cm_notify(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)
like a whole group chat of connection-manager functions. you send the dreq, then you go peek at ib_send_cm_drep(9) to see the other side of the breakup. ππ
lowkey reminder bestie:private_datais optional andprivate_data_lenis its byte count β don't be out here passing a length that doesn't match your buffer, that's not the vibe. π
and that's the page!! π sign-off time: this one lives over in ./include/rdma, dated October 2026, and it's filed under ib_send_cm_dreq(9) in the Kernel API Manual. obsessed with her, honestly. 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