ttm_io_prot(9)
π ttm_io_prot(9) β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual entry for ttm_io_prot(9) β yes the header says the manual name right there, we love a formal intro β¨
πΈ NAME πΈ
ttm_io_prot β and honestly? that's it. the NAME section literally gives us the function name and thenβ¦ nothing. no description. no tagline. she said "my name is enough" and honestly, iconic. main character energy fr π
β¨ SYNOPSIS β¨
pgprot_t ttm_io_prot (struct ttm_buffer_object *bo , struct ttm_resource
*res , pgprot_t tmp );
so she returns a pgprot_t, and she takes three things. noted. copied exactly. no cap π«Ά
π ARGUMENTS π
boβ the ttm buffer object π like, the buffer, the whole pointresβ the ttm resource object πΈ the resource half of the situationtmpβ Page protection flag for a normal, cached mapping. yes bestie, normal, cached, we're talking the default vibe here β
π¦ DESCRIPTION π¦
okay so here's the tea: ttm_io_prot is a utility function β a little helper, a supporting character with main character energy β that returns the pgprot_t you should be using when you're setting up a PTE π
and which pgprot_t? the one matching the caching model indicated by c_state. that's the whole bit. that's the function. she checks the caching model and hands you back the right protection bits π₯
no more, no less. lowkey elegant. highkey useful π
π SEE ALSO π
bestie there are SO many siblings, buckle up π§ it's giving family reunion:
- Kernel file
./drivers/gpu/drm/ttm/ttm_bo_util.c ttm_move_memcpy(9)ttm_bo_move_memcpy(9)ttm_buffer_object_transfer(9)ttm_bo_kmap_try_from_panic(9)ttm_bo_kmap(9)ttm_bo_kunmap(9)ttm_bo_vmap(9)ttm_bo_vunmap(9)ttm_bo_move_accel_cleanup(9)ttm_bo_move_sync_cleanup(9)ttm_bo_pipeline_gutting(9)ttm_lru_walk_for_evict(9)ttm_bo_lru_cursor_fini(9)ttm_bo_lru_cursor_init(9)ttm_bo_lru_cursor_next(9)ttm_bo_lru_cursor_first(9)ttm_bo_shrink(9)ttm_bo_shrink_suitable(9)ttm_bo_shrink_avoid_wait(9)
that's twenty-one references and i listed every single one, because we do NOT skip the boring parts in this house π€π
ok tiny heads-up bestie: the DESCRIPTION talks about a thing calledc_state, butc_stateisn't in the argument list. that's just how the page is written β i'm not out here inventing lore π i report, you decide π
and that's the whole page!! cute lil sign-off time: this one lives under ./drivers/gpu/drm/ttm, dated October 2026, and she's ttm_io_prot(9) from the Kernel API Manual. slay, periodt, go read a buffer object ππ¦π
π¦ 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