rdma_user_mmap_entry_insert(9)
π rdma_user_mmap_entry_insert(9) β the Kernel API Manual, but make it make sense
okay so bestie, welcome to the rdma_user_mmap_entry_insert page from the Kernel API Manual β¨ this is the one that slides a new entry into the mmap_xa database, and honestly? iconic behavior.
πΈ NAME πΈ
rdma_user_mmap_entry_insert β insert an entry to the mmap_xa, fr fr π«Ά
β¨ SYNOPSIS β¨
int rdma_user_mmap_entry_insert (struct ib_ucontext *ucontext , struct
rdma_user_mmap_entry *entry , size_t length );
π ARGUMENTS π
ucontextβ the user context it's associated with π«entryβ literally the entry we're inserting into themmap_xa, that's the whole vibelengthβ length of the address that will be mmapped π
π¦ DESCRIPTION π¦
So here's the tea β: this function should be called by drivers that use the rdma_user_mmap interface for handling user mmapped addresses. The database itself is handled in the core, and helper functions are provided to insert entries into the database and extract entries when the user calls mmap with the given offset.
The function allocates a unique page offset that should be provided to user π and the user will use that offset to retrieve information such as address to be mapped and how. it's giving "here's your little ticket, go get your info" ποΈ
π₯ RETURN π₯
0 on success and -ENOMEM on failure π (classic).
π SEE ALSO π
- Kernel file
./drivers/infiniband/core/ib_core_uverbs.c rdma_umap_priv_init(9)rdma_user_mmap_io(9)rdma_user_mmap_entry_get_pgoff(9)rdma_user_mmap_entry_get(9)rdma_user_mmap_entry_put(9)rdma_user_mmap_entry_remove(9)rdma_user_mmap_entry_insert_range(9)rdma_udata_to_dev(9)_uverbs_alloc(9)uverbs_get_buffer_desc(9)
the whole friend group, together at last π
ngl bestie, there's no bug note or warning on this page β it's just a clean little insert function doing its main character thing π
and that's the page!! π mwah π this one comes to you from ./drivers/infiniband/core, dated October 2026, and it's rdma_user_mmap_entry_insert(9) β go forth and mmap responsibly, 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