It is a wrapper above a char * to track the overall available space in the buffer as well as the used space. This wrapper does not manage memory allocation.
The DRM generic code started to use this in Linux 6.10.
This is part of the update of DRM drivers to Linux 6.10.
Sponsored by: The FreeBSD Foundation