drm_vma_node_is_allowed(9)
β¨ drm_vma_node_is_allowed(9) β¨
okay so bestie, welcome to the Kernel API Manual π β today's main character is drm_vma_node_is_allowed, and honestly? she's a little vibe check for permissions. let's get into it π
π NAME π
drm_vma_node_is_allowed β check whether an open-file is granted access π¦
πΈ SYNOPSIS πΈ
bool drm_vma_node_is_allowed (struct drm_vma_offset_node *node , struct
drm_file *tag );
bestie it's literally just one function call, no cap. returns a bool, takes two things, and we're gonna talk about both of them right now π«Ά
β¨ ARGUMENTS β¨
nodeβ the node to check π like, this is the one we're snooping ontagβ tag of file to remove π (yes, that's what it says β we're passing it in to be looked up)
π₯ DESCRIPTION π₯
so the way this works: it searches the list in node to see whether tag is currently on the list of allowed open-files (peep drm_vma_node_allow) π
and before u get any ideas about race conditions β don't. this is locked against concurrent access internally. she handles that herself, she's very much giving main character energy π
β RETURN β
returns true if filp is on the list π yep, filp β that's the word the page uses, so that's the word we're keeping. don't come for me.
π¦ SEE ALSO π¦
kernel file ./drivers/gpu/drm/drm_vma_manager.c πΈ and friends:
- vma offset manager(9)
drm_vma_offset_manager_init(9)drm_vma_offset_manager_destroy(9)drm_vma_offset_lookup_locked(9)drm_vma_offset_add(9)drm_vma_offset_remove(9)drm_vma_node_allow(9)drm_vma_node_allow_once(9)drm_vma_node_revoke(9)
anyway that's the whole page bestie, ily, go read the source, mwah π
π§ sign-off: this lil beauty lives in ./drivers/gpu/drm, dated October 2026, from the Kernel API Manual β iconic, periodt. π
π¦ 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