drm_pagemap_get_unless_zero(9)
β¨ NAME β¨
okay so bestie, this is drm_pagemap_get_unless_zero(9) from the Kernel API Manual, and she is literally the βObtain a reference on a struct drm_pagemap unless the current reference count is zeroβ icon π
. no cap, that is the whole assignment π.
π¦ SYNOPSIS π¦
struct drm_pagemap * drm_pagemap_get_unless_zero (struct drm_pagemap
*dpagemap );
πΈ ARGUMENTS πΈ
dpagemapβ pointer to thedrm_pagemaporNULL. itβs giving βmaybe a real pointer, maybeNULL, weβll find outβ energy π.
π₯ RETURN π₯
A pointer to dpagemap if the reference count was successfully incremented. NULL if dpagemap was NULL, or its refcount was 0. like, if the vibe check says no, you get NULL β periodt π.
π SEE ALSO π
these are the linked girlies, in order:
- Kernel file
./include/drm/drm_pagemap.henumdrm_interconnect_protocol(9) struct drm_pagemap_addr(9)drm_pagemap_addr_encode(9)struct drm_pagemap_ops(9)struct drm_pagemap(9)struct drm_pagemap_devmem_ops(9)drm_pagemap_get(9)struct drm_pagemap_devmem(9)struct drm_pagemap_migrate_details(9)drm_pagemap_page_zone_device_data(9)
mwah π this page came from ./include/drm, dated October 2026, and itβs all about drm_pagemap_get_unless_zero(9). byeee bestie, go increment something π«Άβ¨
π¦ 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