READ_LINE(9)
π NAME π
okay so, bestie, this is READ_LINE(9) from the Kernel API Manual, and she is literally a generic generator for a read_line function π«Ά. You can use her for a format with one plane and a block_h == block_w == 1 β¨.
πΈ SYNOPSIS πΈ
READ_LINE (function_name , pixel_name , pixel_type , callback , ... );
Copy it exactly, spaces and all β we do not freelance this, periodt π .
π ARGUMENTS π
Here's the group-chat roll call, no cap:
function_nameβ function name to generate β¨.pixel_nameβ temporary pixel name used in the__VA_ARGS__parameters π«Ά.pixel_typeβ used to specify the type you want to cast the pixel pointer π.callbackβ callback to call for each pixels. This fonction should take__VA_ARGS__as parameter and return apixel_argb_u16π.__VA_ARGS__: Argument to pass inside the callback. You can usepixel_nameto access current pixel πΈ.
...β variable arguments π.
π₯ SEE ALSO π₯
go read these too, iykyk π:
- Kernel file:
./drivers/gpu/drm/vkms/vkms_formats.c 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_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)get_pixel_write_function(9)
xoxo π source/version: ./drivers/gpu/drm/vkms Β· date: October 2026 Β· page: READ_LINE(9) β mwah π
π¦ 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