get_pixel_write_function(9)
okay bestie, welcome to the Kernel API Manual page for get_pixel_write_function(9) β we're finding the correct write_pixel function for a specific format, and yes, the vibe is very "kernel but make it cute" π
β¨
π NAME π
get_pixel_write_function β okay so this is the little icon that retrieves the correct write_pixel function for a specific format. The returned pointer is NULL for unsupported pixel formats, so don't just assume it's cute and ready to go.
β οΈ important caveat, bestie: the caller must ensure that the pointer is valid before using it in a vkms_writeback_job. Like, that's not optional. π
β¨ SYNOPSIS β¨
here's the exact signature, no cap:
pixel_write_t get_pixel_write_function (u32 format );
π ARGUMENTS π
formatβ aDRM_FORMAT_*value, and you're asking for the conversion function for that format (see[drm_fourcc.h]). That's the whole argument, bestie.
π¦ SEE ALSO π¦
Kernel file ./drivers/gpu/drm/vkms/vkms_formats.c β that's where this lives, iykyk. And here's the whole squad, no one left behind:
packed_pixels_offset(9)packed_pixels_addr(9)get_block_step_bytes(9)packed_pixels_addr_1x1(9)get_subsampling(9)get_subsampling_offset(9)READ_LINE(9)READ_LINE_ARGB8888(9)READ_LINE_le16161616(9)READ_LINE_YUV_SEMIPLANAR(9)vkms_writeback_row(9)get_pixel_read_line_function(9)swap_uv_columns(9)get_conversion_matrix_to_argb_u16(9)
mwah π β source/version ./drivers/gpu/drm/vkms, date October 2026, get_pixel_write_function(9) signing off. πβ¨
π¦ 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