cma_ib_acquire_dev(9)
π cma_ib_acquire_dev(9) β like, the kernel API manual bestie π
okay so we're in the Kernel API Manual today and the star of the show is cma_ib_acquire_dev(9). yes that's a mouthful, no i will not be shortening it, it's iconic and it knows it β¨
πΈ NAME πΈ
cma_ib_acquire_dev β acquire cma device, port and SGID attribute π«Ά
like literally that's the whole vibe. it goes and gets the device, the port, and the SGID attribute. main character energy fr fr.
π¦ SYNOPSIS π¦
int cma_ib_acquire_dev (struct rdma_id_private *id_priv , const struct
rdma_id_private *listen_id_priv , struct cma_req_info *req );
returns an int, takes three args. slay. no cap, that's it π
β ARGUMENTS β
id_privβ the cm id you're binding to the cma device. yeah that one. that's your girl πlisten_id_privβ the listener cm id that gets matched against. it's the one doing the matching, iykyk πreqβ pointer to thereqstructure containing the incoming request info. it's literally carrying the info, let it cook π
π what it actually does π
okay so here's the tea β β cma_ib_acquire_dev acquires the cma device, the port and the SGID attribute when the rdma device matches the listen_id and the incoming request. both. it's picky and honestly? valid π
it also verifies that a GID table entry is present for the source address β like a little bouncer at the club checking the list π§
returns 0 on success, or returns an error code otherwise. bestie if you get a non-zero back, something went sideways, no cap π
π₯ SEE ALSO π₯
kernel file ./drivers/infiniband/core/cma.c β go read it, it's giving lore β¨
and the whole friend group:
rdma_is_consumer_reject(9)rdma_iw_cm_id(9)cma_acquire_dev_by_src_ip(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)
all of them. every single one. we don't do skipping here π«Ά
π cute lil sign-off π this page lives in ./drivers/infiniband/core and it's dated October 2026 β yes, from the future, obsessed. mwah, go acquire some devices bestie ππ¦πΈ
π¦ 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