drm_format_conv_state_copy(9)
π drm_format_conv_state_copy(9) β from the Kernel API Manual, bestie π
okay so picture this: you're deep in the kernel docs and a page called drm_format_conv_state_copy shows up. don't panic. it's actually so chill. let me explain the whole thing to you like we're texting at 2am β¨
β¨ NAME β¨
drm_format_conv_state_copy β literally just "Copy format-conversion state" π«Ά no cap, that's the whole vibe.
πΈ SYNOPSIS πΈ
void drm_format_conv_state_copy (struct drm_format_conv_state *state ,
const struct drm_format_conv_state *old_state );
so you call it, you hand it two pointers, it does its little copy thing. iconic behavior honestly π
π¦ ARGUMENTS π¦
stateβ the destination state, aka where the good stuff lands π―old_stateβ the source state, aka where the good stuff comes from π
two structs, one function, zero drama.
π DESCRIPTION π
so here's the tea, bestie: drm_format_conv_state_copy copies the format-conversion state from old_state over to state β but with a little twist π it does not copy the temporary storage. nope. that part gets left behind. so like, everything except for temporary storage gets moved over, which is honestly such a main-character move β¨
π reminder bestie: it's "except for temporary storage" β that's the literal wording of how this thing behaves, so don't go expecting the temp bits to tag along, fr fr.
π₯ SEE ALSO π₯
the kernel file, right here:
./drivers/gpu/drm/drm_format_helper.c
and then the whole friend group, all of these, every single one π:
drm_format_conv_state_init(9)drm_format_conv_state_reserve(9)drm_format_conv_state_release(9)drm_fb_clip_offset(9)drm_fb_memcpy(9)drm_fb_swab(9)drm_fb_xrgb8888_to_rgb332(9)drm_fb_xrgb8888_to_rgb565(9)drm_fb_xrgb8888_to_rgb565be(9)drm_fb_xrgb8888_to_xrgb1555(9)drm_fb_xrgb8888_to_argb1555(9)drm_fb_xrgb8888_to_rgba5551(9)drm_fb_xrgb8888_to_rgb888(9)drm_fb_xrgb8888_to_bgr888(9)drm_fb_xrgb8888_to_argb8888(9)drm_fb_xrgb8888_to_abgr8888(9)drm_fb_xrgb8888_to_xbgr8888(9)drm_fb_xrgb8888_to_bgrx8888(9)drm_fb_xrgb8888_to_xrgb2101010(9)drm_fb_xrgb8888_to_argb2101010(9)drm_fb_xrgb8888_to_gray8(9)drm_fb_argb8888_to_argb4444(9)drm_fb_xrgb8888_to_mono(9)drm_fb_xrgb8888_to_gray2(9)
like, look at that list. that's a whole squad. π
and that's the whole page bestie, you ate that π
β¨ this little gem lives over in ./drivers/gpu/drm and the docs say October 2026 β so mark your calendar, screenshot it, send it to the group chat, slay ππ«Άπ
π¦ 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