drm_format_conv_state_copy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‘:

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