drm_kunit_d...from_cea_vic(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ drm_kunit_display_mode_from_cea_vic ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– β€” this one's a lil helper from the DRM KUnit corner of the kernel, and honestly? it's giving "tiny function, big main character energy". let's get into it πŸŽ€


🌸 NAME 🌸

drm_kunit_display_mode_from_cea_vic β€” return a mode for CEA VIC for a KUnit test

like, that's literally the whole job. it hands you a display mode. for a test. slay πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

struct drm_display_mode * drm_kunit_display_mode_from_cea_vic (struct
kunit *test , struct drm_device *dev , u8 video_code );

yes she's a function returning a struct drm_display_mode *, and yes you pass her three things. keep scrolling for the tea β˜•


πŸ’œ ARGUMENTS πŸ’œ

  • test β€” the test context object πŸ§ͺ like, the whole vibe of the test lives in here
  • dev β€” the DRM device πŸ–₯️ the actual star of the show
  • video_code β€” the CEA VIC of the mode 🎞️ it's a u8, it's iconic, it picks which mode you get

πŸ”₯ DESCRIPTION πŸ”₯

so what does she do? she creates a new mode matching the specified CEA VIC, specifically for a KUnit test ✨ that's it, that's the function.

and the best part? resources will be cleaned up automatically 🫢 no manual teardown, no crying over leaked memory, no "not me forgetting to free the thing" moments. she handles it. periodt.


πŸ‘‘ RETURN πŸ‘‘

a new drm_display_mode on success πŸ’– or NULL on failure 😭 (yes, always check. always. ngl it's the bare minimum).


🌈 SEE ALSO 🌈

kernel file: ./drivers/gpu/drm/tests/drm_kunit_helpers.c πŸ“

and her besties, the whole friend group, fr fr:

real talk: if you're poking around DRM KUnit tests, you're gonna see these names a lot β€” they're the squad, iykyk πŸ’€

and that's the page, bestie πŸŽ€ mwah πŸ’‹ β€” brought to you by the fine folks in ./drivers/gpu/drm/tests, dated October 2026, and titled drm_kunit_d...from_cea_vic(9) because apparently even manpage headers get the truncated-name treatment πŸ™ˆ stay hydrated, go write a test, and remember: if it returns NULL, that's not a vibe πŸ’…βœ¨

πŸ“¦ where this page comes from