ib_umem_get_attr(9)
π NAME π
ib_umem_get_attr β Pin a umem from a per-command UMEM attribute. Yep, that's the assignment, and it's lowkey iconic. This page lives in the Kernel API Manual, so we're doing kernel-API group-chat now π«Ά.
β¨ SYNOPSIS β¨
okay so the exact signature is right here, no cap:
struct ib_umem * ib_umem_get_attr (struct ib_device *device , const
struct uverbs_attr_bundle *attrs , u16 attr_id , size_t size , int
access );
π ARGUMENTS π
deviceβ the IB device, bestie.attrsβ the uverbs attribute bundle (may beNULL). Yes, it can be NULL, slay.attr_idβ the per-command UMEM attribute id.sizeβ the minimum required umem length.accessβ the IB access flags.
πΈ RETURN πΈ
On success you get a caller-owned umem back, periodt. You get NULL when no source supplied a buffer. On error it's ERR_PTR(...), and that's the whole dramatic arc π.
π¦ SEE ALSO π¦
The Kernel file is ./drivers/infiniband/core/umem.c, and the SEE ALSO crew is:
ib_umem_find_best_pgsz(9)ib_umem_get_desc(9)ib_umem_get_attr_or_va(9)ib_umem_get_cq_buf(9)ib_umem_get_cq_buf_or_va(9)ib_umem_release(9)
Signed off from ./drivers/infiniband/core β October 2026 β with ib_umem_get_attr(9) energy π
π¦ 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