drm_vma_node_allow_once(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_vma_node_allow_once(9) πŸ’…

okay so bestie, this is one of those kernel API manual pages β€” it lives in the Kernel API Manual, and it's about drm_vma_node_allow_once, which is literally "Add open-file to list of allowed users." One open-file, one shot, no take-backs. πŸŽ€


✨ SYNOPSIS ✨

int drm_vma_node_allow_once (struct drm_vma_offset_node *node , struct
drm_file *tag );

like. that's the whole signature. it returns an int, it takes a node and a tag, and yes the formatting is doing that awkward line-break thing. we don't judge. πŸ¦‹


🌸 ARGUMENTS 🌸

  • node β€” Node to modify. this is the vma offset node you're messing with, bestie.
  • tag β€” Tag of file to remove. (yes, it says "remove" in the argument blurb even though the function adds β€” that's what the page literally says, so we're passing that along verbatim, no cap πŸ™ˆ)

πŸ’– DESCRIPTION πŸ’–

So what it does: it adds tag to the list of allowed open-files for this node. That's the whole vibe. ✨

The list of allowed-users is preserved across drm_vma_offset_add and drm_vma_offset_remove calls. like, those calls do not clear it out, the list stays. You may even call it if the node is currently not added to any offset-manager β€” icon status honestly. πŸ‘‘

🚨 important caveat, please read this one: this is not ref-counted, unlike drm_vma_node_allow. so drm_vma_node_revoke should only be called once after this. once! not twice! not in a loop! the way that ref-counting does not exist here is genuinely something to remember. πŸ’€

Also, this is locked against concurrent access internally β€” the kernel handles the locking for you, so you don't have to do the whole mutex dance yourself. slay. 🫢


⭐ RETURN ⭐

  • 0 on success πŸŽ‰
  • negative error code on internal failure (out-of-mem) 😭

🌈 SEE ALSO 🌈

go read these next, they're all in the same universe:


and that's the page, bestie πŸ’œ β€” sourced from ./drivers/gpu/drm, dated October 2026, part of the Kernel API Manual, filed under drm_vma_node_allow_once(9). go forth and call it exactly once, mwah πŸ§šπŸ’…

πŸ“¦ where this page comes from