i915_gem_object_unpin_map(9)
π
i915_gem_object_unpin_map β the Kernel API Manual page you've been waiting for β¨
okay so bestie, welcome to the Kernel API Manual, page i915_gem_object_unpin_map(9). this one's short and sweet and honestly? it's giving "clean up after yourself" energy. let's get into it π«Ά
πΈ NAME πΈ
i915_gem_object_unpin_map β releases an earlier mapping π
like, you mapped something before, remember? now we're un-mapping it. balance. symmetry. iconic.
β¨ SYNOPSIS β¨
void i915_gem_object_unpin_map (struct drm_i915_gem_object *obj );
no cap, that's the whole signature. it returns void, so don't go looking for a return value, there isn't one π
π¦ ARGUMENTS π¦
objβ the object to unmap. that's it. that's the whole argument. she's low maintenance π
π DESCRIPTION π
so here's the lore: remember how you pinned the object and mapped its pages? yeah. now you're done with your access, and it's time to call i915_gem_object_unpin_map to release the pin upon the mapping π―
the way this works is literally so satisfying: once the pin count reaches zero, that mapping may be removed. zero means free. zero means bye bestie. that's the vibe check π
β οΈ fr fr though: this is the "I'm finished with my access" call. don't be out here unpinning maps you haven't finished with. the pin count going to zero is what lets the mapping get removed, and that's the whole point of her π
π SEE ALSO π
the Kernel file to go peek at is ./drivers/gpu/drm/i915/gem/i915_gem_object.h β that's where the goods live π
and here's the whole friend group, in the order the page lists them (yes, all of them, I would never skip one, not on my watch):
i915_gem_object_lookup_rcu(9)__i915_gem_object_page_iter_get_sg(9)i915_gem_object_page_iter_get_sg(9)__i915_gem_object_get_sg(9)i915_gem_object_get_sg(9)__i915_gem_object_get_sg_dma(9)i915_gem_object_get_sg_dma(9)__i915_gem_object_get_page(9)i915_gem_object_get_page(9)__i915_gem_object_get_dirty_page(9)i915_gem_object_get_dirty_page(9)__i915_gem_object_get_dma_address_len(9)i915_gem_object_get_dma_address_len(9)__i915_gem_object_get_dma_address(9)i915_gem_object_get_dma_address(9)i915_gem_object_pin_map(9)
not the double-underscore versions being the introverted siblings of the regular ones π anyway. i915_gem_object_pin_map(9) is the one that got you here β she's the pin, this page is the unpin. they're a matched set, iykyk π
π§ and that's the whole page, bestie. short, sweet, and completely slaying.
πΈπ π sign-off time ππ πΈ
this little masterpiece comes from the source path ./drivers/gpu/drm/i915/gem and is dated October 2026 β so like, future-coded of her, honestly. no cap, she ate. 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