cma_acquire_dev_by_src_ip(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” the cm_id that 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 🌈

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