i915_gem_object_pin_map(9)
π NAME π
okay so bestie, this page is i915_gem_object_pin_map(9) from the Kernel API Manual, and it is literally the βreturn a contiguous mapping of the entire objectβ function. no cap. β¨
π¦ SYNOPSIS π¦
void * i915_gem_object_pin_map (struct drm_i915_gem_object *obj , enum
i915_map_type type );
π ARGUMENTS π
objβ the object to map into kernel address space. main character energy, honestly.typeβ the type of mapping, used to selectpgprot_t. itβs giving βwhich mapping flavor are we doingβ vibes.
πΈ DESCRIPTION πΈ
okay so hereβs the tea: i915_gem_object_pin_map calls i915_gem_object_pin_pages to prevent reaping of the objectβs pages, and then returns a contiguous mapping of the backing storage into the kernel address space. slay. π
based on the type of mapping, the PTE will be set to either WriteBack or WriteCombine (via pgprot_t). lowkey important detail, bestie.
The caller is responsible for calling i915_gem_object_unpin_map when the mapping is no longer required. so do not forget to clean up β thatβs your job, not the functionβs. π«Ά
It returns the pointer through which to access the mapped object, or an ERR_PTR on error. so check that return value, fr fr. π
π SEE ALSO π
Kernel file: ./drivers/gpu/drm/i915/gem/i915_gem_object.h β go peek, iykyk. π
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_unpin_map(9)
xoxo, source/version: ./drivers/gpu/drm/i915/gem Β· date: October 2026 Β· page: i915_gem_object_pin_map(9) πβ¨
π¦ 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