cma_acquire_dev_by_src_ip(9)
π cma_acquire_dev_by_src_ip
okay bestie, welcome to the Kernel API Manual β¨ this one's a kernel-level baddie from the infiniband world and she is very specific about who she binds to. let's get into it π«Ά
β¨ NAME β¨
cma_acquire_dev_by_src_ip β acquires the cma device, port, and gid attribute, all based on the source ip address π
like, it literally reads your source IP and goes "okay this is your vibe, here's your device" no cap π₯
πΈ SYNOPSIS πΈ
int cma_acquire_dev_by_src_ip (struct rdma_id_private *id_priv );
π ARGUMENTS π
id_privβ thecm_idthat should be bound to the cma device π this is the main character of the call fr fr
π¦ DESCRIPTION π¦
so cma_acquire_dev_by_src_ip binds the cm id to the cma device, the port, and the GID attribute, and it figures alllll of that out based on the source IP address π« like it's matching the IP to the whole fit, iykyk.
it returns 0 on success, or an error code otherwise π that's the vibe check β zero means slay, anything else means something went sideways.
and the best part? it's applicable to both active and passive side cm_id π
so no matter which side you're on, she's got you.
π SEE ALSO π
- Kernel file
./drivers/infiniband/core/cma.c rdma_is_consumer_reject(9)rdma_iw_cm_id(9)cma_ib_acquire_dev(9)rdma_set_ack_timeout(9)rdma_set_min_rnr_timer(9)rdma_connect_locked(9)rdma_connect(9)rdma_connect_ece(9)rdma_accept(9)
like a whole friend group of related calls, go say hi to all of them π§π
and that's the whole page bestie π this iconic lil entry lives over in ./drivers/infiniband/core and the version is dated October 2026 β go off, kernel docs, 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