rvt_create_mmap_info(9)
okay bestie, welcome to the rvt_create_mmap_info(9) page from the Kernel API Manual β this one is all about allocating info for hfi1_mmap, and weβre gonna get through it together πβ¨
πΈ NAME πΈ
rvt_create_mmap_info β allocate information for hfi1_mmap
π¦ SYNOPSIS π¦
struct rvt_mmap_info * rvt_create_mmap_info (struct rvt_dev_info *rdi ,
u32 size , struct ib_udata *udata , void *obj );
π ARGUMENTS π
rdiβ thervtdev struct, aka the main character of this functionβs little world πsizeβ size in bytes to map, so likeβ¦ how much weβre mapping, bestie πudataβ user data, and heads up: it must be valid! not optional, not βmaybe later,β valid fr fr πobjβ opaque pointer to acq,wqetc β mysterious, iconic, we donβt peek inside π
β RETURN β
On success you get an rvt_mmap struct, slay π«Ά On failure you get ERR_PTR, which is the βnope, something went wrongβ vibe check π
π SEE ALSO π
- Kernel file
./drivers/infiniband/sw/rdmavt/mmap.c rvt_mmap_init(9)rvt_release_mmap_info(9)rvt_mmap(9)rvt_update_mmap_info(9)
and thatβs the whole page, bestie β¨ this one comes from ./drivers/infiniband/sw/rdmavt, dated October 2026, and itβs literally rvt_create_mmap_info(9) β 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