rdma_user_mmap_entry_put(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… rdma_user_mmap_entry_put(9) β€” or, "letting go of your mmap entry, bestie"

okay so first things first: this is a page from the Kernel API Manual, section 9, and the whole vibe is reference counting for mmap entries in RDMA. she's short, she's sweet, she's the cleanup half of a get/put pair. let's get into it 🫢


✨ NAME ✨

rdma_user_mmap_entry_put β€” drop reference to the mmap entry

like, you're done with it, so you put it down. respectfully. πŸ”₯


🌸 SYNOPSIS 🌸

void rdma_user_mmap_entry_put (struct rdma_user_mmap_entry *entry );

yep that's the whole signature, no cap. returns void, which honestly is such a mood β€” she does the work and doesn't need to report back.


πŸŽ€ ARGUMENTS πŸŽ€

  • entry β€” an entry in the mmap_xa. that's it, that's the whole parameter. one (1) entry, from the mmap_xa. πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so here's the tea β˜• β€” this function gets called when the mapping is closed, if it was an io mapping, or when the driver is simply done with the entry for some other reason. either way, she's the one who handles the goodbye.

the rule is: you call her after rdma_user_mmap_entry_get was called, and once entry is no longer needed. that's the order, bestie, don't skip it πŸ™ˆ

and what does she actually do? she will erase the entry and free it if its refcnt reaches zero. so if you were the last one holding on β€” she cleans it all up. if not, she just drops your reference and lets the others finish their little moment. iconic behavior, honestly. πŸ‘‘

lowkey important: this is the put to the get. you don't just vibe in there and call her out of nowhere β€” she expects the get to have happened already. iykyk πŸ’€

⭐ SEE ALSO ⭐

the whole friend group fr fr β€” go read them too, they're all in the same little kernel-file neighborhood 🧚


and that's the page, bestie!! this one lives in ./drivers/infiniband/core, from the Kernel API Manual, dated October 2026 β€” go forth and put your entries responsibly πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from