drm_vma_node_is_allowed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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 on
  • tag β€” 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:


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