drm_vma_offset_remove(9)
π drm_vma_offset_remove(9) β from the Kernel API Manual, bestie
okay so picture this: it's the kernel API manual, it's giving very "drivers/gpu/drm" energy, and this one little function is here to clean up after everybody. let's get into it β¨
πΈ NAME πΈ
drm_vma_offset_remove β the function that takes an offset node and yeets it right out of the manager. no cap, that's literally the whole job π
β¨ SYNOPSIS β¨
void drm_vma_offset_remove (struct drm_vma_offset_manager *mgr , struct
drm_vma_offset_node *node );
like yes, it returns void, it's not here to give you a report card, it just does the thing π
π¦ ARGUMENTS π¦
mgrβ the manager object. the boss. the one holding the vibes (and the offsets) together πnodeβ the node that's getting removed. bye bestie, we hardly knew ye π«Ά
π₯ DESCRIPTION π₯
So here's the tea: this function removes a node from the offset manager. that's it, that's the plot.
And like β if the node wasn't added before in the first place? nothing happens. zero. zilch. it just does nothing and honestly, respect the boundaries π
But here's the part you actually need to remember: after this call returns, the offset and the size will be 0 until a new offset gets allocated via drm_vma_offset_add again. so if you're out here wondering why everything reads 0 afterwards β that's not a bug, that's just the vibe check you signed up for π
Also, this goes for the helper girlies too: functions like drm_vma_node_start and drm_vma_node_offset_addr will return 0 if no offset is allocated. iconic behavior, honestly. no offset, no number, no problem β¨
lowkey important: don't expect the old offset to stick around after removal. it's gone gone. you gotta call drm_vma_offset_add again if you want a fresh one π
π SEE ALSO π
go read these, they're all in the same friend group:
- Kernel file
./drivers/gpu/drm/drm_vma_manager.cβ and the pagevma 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_node_allow(9)drm_vma_node_allow_once(9)drm_vma_node_revoke(9)drm_vma_node_is_allowed(9)
and that's the whole page, bestie π§π it lives at ./drivers/gpu/drm, it's dated October 2026, and it's filed under drm_vma_offset_remove(9) β go off, kernel docs, you ate βπΈ
π¦ 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