drm_pagemap_page_set_flags(9)
π drm_pagemap_page_set_flags(9) β like, the Kernel API Manual one π
okay bestie, so this is a lil page from the Kernel API Manual, and it's all about drm_pagemap_page_set_flags β yes that's a long name, she's got main character energy, we respect it π
β¨ NAME β¨
drm_pagemap_page_set_flags β sets flags on a device-private folio π¦
πΈ SYNOPSIS πΈ
void drm_pagemap_page_set_flags (struct page *page , unsigned long flags );
π ARGUMENTS π
pageβ a pointer to a page of the device-private folio. literally just the page, bestie πflagsβ theDRM_PAGEMAP_ZDD_FLAG_*bits you wanna set β¨
β DESCRIPTION β
So what does it actually do? It preserves any flags that are already encoded alongside the ZDD pointer π«Ά. That's it, that's the whole vibe. Nothing gets clobbered, no cap π
ngl this one is short and sweet β the way that a function can just do one thing and do it well is so iconic of it honestly π
π₯ SEE ALSO π₯
okay this is the part where the whole extended friend group shows up, and honestly? obsessed. here's everyone π
Kernel file ./drivers/gpu/drm/drm_pagemap.c Overview(9), Migration(9), struct drm_pagemap_zdd(9), drm_pagemap_zdd_alloc(9), drm_pagemap_zdd_get(9), drm_pagemap_zdd_destroy(9), drm_pagemap_zdd_put(9), drm_pagemap_migration_unlock_put_folio(9), drm_pagemap_migration_unlock_put_pages(9), drm_pagemap_get_devmem_page(9), drm_pagemap_migrate_map_device_private_pages(9), struct drm_pagemap_iova_state(9), drm_pagemap_migrate_map_system_pages(9), drm_pagemap_migrate_populate_src_pages(9), drm_pagemap_migrate_unmap_pages(9), struct migrate_range_loc(9), drm_pagemap_cpages(9), drm_pagemap_migrate_to_devmem(9), drm_pagemap_migrate_populate_ram_pfn(9), struct drm_pagemap_dev_hold(9), drm_pagemap_reinit(9), drm_pagemap_init(9), drm_pagemap_put(9), drm_pagemap_page_get_flags(9), drm_pagemap_retire_migrated_pages(9), drm_pagemap_skip_retired_pages(9), drm_pagemap_evict_to_ram(9), __drm_pagemap_migrate_to_ram(9), drm_pagemap_folio_free(9), drm_pagemap_migrate_to_ram(9), drm_pagemap_pagemap_ops_get(9), drm_pagemap_devmem_init(9), drm_pagemap_page_to_dpagemap(9), drm_pagemap_populate_mm(9)
and that's the whole page, bestie, you ate that πβ¨
signing off from ./drivers/gpu/drm, dated October 2026 β mwah, ily, go set some flags responsibly ππ
π
π¦ 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