vmw_cotable_create(9)
π vmw_cotable_create β Cotable resource create callback
Okay so real quick before we get into it: this page lives in the Kernel API Manual, bestie. That's the official manual name, we don't make the rules, we just make it cute. π
β¨ NAME β¨
vmw_cotable_create β the cotable resource create callback.
That's it. That's the name. Short, sweet, iconic. π¦
β¨ SYNOPSIS β¨
int vmw_cotable_create (struct vmw_resource *res );
Yep, exactly like that. Spaces and all. Copy it verbatim, don't be weird about it. π
β¨ ARGUMENTS β¨
resβ a pointer to a cotable resource. One single pointer. That's the whole cast. Main character energy, no ensemble. π
β¨ DESCRIPTION β¨
Okay so here's the thing that lowkey trips people up: cotables do not have their own separate create command. Like, it just doesn't exist. So instead we have this callback, and it gets called before bind in the validation sequence, and it's out here doing two whole jobs. Double duty, fr fr. πͺ
- Unscrub β if the cotable is scrubbed and it's still attached to a backup buffer, we unscrub it. Scrub still clinging to a backup buffer? Not on this callback's watch. πβ¨
- Resize β if the cotable needs resizing, we resize it. Needed resize? Resized. Simple as that. π
Two things, one callback, no separate create command. Periodt.
β¨ SEE ALSO β¨
Kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c β go read it, it's giving lore:
struct vmw_cotable(9)struct vmw_cotable_info(9)vmw_cotable(9)vmw_cotable_destroy(9)vmw_cotable_unscrub(9)vmw_cotable_bind(9)vmw_cotable_scrub(9)vmw_cotable_unbind(9)vmw_cotable_readback(9)vmw_cotable_resize(9)vmw_hw_cotable_destroy(9)vmw_cotable_free(9)vmw_cotable_alloc(9)vmw_cotable_notify(9)vmw_cotable_add_resource(9)
And that's a wrap, bestie!! π«Ά Big shoutout to ./drivers/gpu/drm/vmwgfx for being the source/version, and to October 2026 for being the date on this little masterpiece. Go unscrub 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