vmw_bo_dirty_unmap(9)
π vmw_bo_dirty_unmap(9) π
okay so this is a page from the Kernel API Manual, bestie, and it's about exactly one (1) little function. let's get into it π«Ά
β¨ NAME β¨
vmw_bo_dirty_unmap β clears, like, all the ptes pointing to a range inside a bo. yes all of them. no crumbs left. π§Ή
πΈ SYNOPSIS πΈ
void vmw_bo_dirty_unmap (struct vmw_bo *vbo , pgoff_t start , pgoff_t
end );
it's giving void, it's giving three args, it's giving absolutely no return value. iconic behavior honestly. β¨
π ARGUMENTS π
vboβ the buffer object. that's the whole vibe. the main character of this function, fr.startβ the first page of the range you're working with, within the buffer object.endβ the last page of the range within the buffer object + 1. yes, plus one. it's a half-open range bestie, don't come for me, that's just how it is π
careful with that + 1 β it is not optional and it is not a typo, i promise you π
π¦ DESCRIPTION π¦
so this is basically ttm_bo_unmap_virtual, except β and this is the whole point β it takes a subrange instead of the whole thing. like yeah sure you could nuke everything, but we're being selective today. main character energy only for the pages in start..end. π
lowkey that's it. that's the function. obsessed with the efficiency honestly. π₯
π SEE ALSO π
here's the friend group, the whole squad, the found family:
- Kernel file
./drivers/gpu/drm/vmwgfx/vmwgfx_page_dirty.c struct vmw_bo_dirty(9)vmw_bo_dirty_scan_pagetable(9)vmw_bo_dirty_scan_mkwrite(9)vmw_bo_dirty_scan(9)vmw_bo_dirty_pre_unmap(9)vmw_bo_dirty_add(9)vmw_bo_dirty_release(9)vmw_bo_dirty_transfer_to_res(9)vmw_bo_dirty_clear_res(9)
go read those too, iykyk π
aaaand that's the page!! this one lives over in ./drivers/gpu/drm/vmwgfx, dated October 2026, and it's literally called vmw_bo_dirty_unmap(9) in case you forgot already. mwah, go clear some ptes for me π§π
π¦ 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