DRM_FORMAT_...PREALLOCATED(9)
π DRM_FORMAT_...PREALLOCATED π
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for DRM_FORMAT_CONV_STATE_INIT_PREALLOCATED, and yes we're folding the whole title in right here at the top so you never have to wonder what you're looking at π«Ά
π NAME π
DRM_FORMAT_CONV_STATE_INIT_PREALLOCATED β it's the initializer for struct drm_format_conv_state, no cap π
β¨ SYNOPSIS β¨
DRM_FORMAT_CONV_STATE_INIT_PREALLOCATED (_mem , _size );
that's it, that's the whole vibe π₯
π¦ ARGUMENTS π¦
_memβ the preallocated memory area, like the venue is already booked bestie π_sizeβ the number of bytes in_mem, because we gotta know how much room we're working with β
πΈ DESCRIPTION πΈ
so what this does is it initializes an instance of struct drm_format_conv_state to use preallocated storage β¨ like it's giving "I brought my own snacks" energy.
and listen, the caller is responsible for releasing the provided memory range π β that's on you, bestie, not on this macro. it's not gonna clean up after you, so don't leave it hanging π
π₯ SEE ALSO π₯
- Kernel file
./include/drm/drm_format_helper.h struct drm_format_conv_state(9)DRM_FORMAT_CONV_STATE_INIT(9)
go read those too, iykyk π
okay that's the whole page bestie, go forth and preallocate responsibly π this gem comes to you straight out of ./include/drm, dated October 2026, from the Kernel API Manual β mwah, ily, bye ππβ¨
π¦ 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