drm_display...om_videomode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ‘‘ NAME πŸ‘‘

drm_display_mode_from_videomode β€” fill in @dmode using @vm,

okay so real talk, this is the drm_display_mode_from_videomode(9) page from the Kernel API Manual β€” and yes the header up top squishes it into drm_display...om_videomode(9) because terminals are dramatic and love to truncate πŸ’… anyway. It's a tiny little function, lowkey one of the shortest glow-ups in the whole DRM directory, and it just fills in @dmode using @vm, (the trailing comma is canon, don't @ me).


✨ SYNOPSIS ✨

void drm_display_mode_from_videomode (const struct videomode *vm ,
       struct drm_display_mode *dmode );

literally that's it. one function, two pointers, zero drama (and it returns void, so don't go looking for a return value bestie, there isn't one 🫢).


πŸŽ€ ARGUMENTS πŸŽ€

  • vm β€” the source, bestie. this is the videomode structure you're reading from. it's const, so hands off, no touching, no cap πŸ™ˆ.
  • dmode β€” the destination, main character energy. this is the drm_display_mode structure you're writing into, and by the end of it she's fully filled in πŸ’–.

πŸ¦‹ DESCRIPTION πŸ¦‹

Fills out dmode using the display mode specified in vm.

that's the whole bit. source in, destination out, everything the display mode needs gets copied over. it's giving tiny-but-essential, a little conversion liaison between the videomode world and the drm_display_mode world 🌸. no flags, no modes, no hidden behaviour β€” just vibes and a struct copy. slay.

heads up: it's void, so if something goes wrong you won't get told. there's no error return to check here, so don't go waiting on one πŸ’€.

🌈 SEE ALSO 🌈

the kernel file herself lives at ./drivers/gpu/drm/drm_modes.c β€” that's the home base 🏠. and here's the whole friend group, in the exact order they showed up:

(and yeah, drm_display_mode_to_videomode(9) is right there in the list β€” she's the reverse-direction bestie of the function you're literally reading about. iconic symmetry πŸ”₯)


okay that's the whole page, no crumbs left πŸ“. this came out of the Kernel API Manual, sourced from ./drivers/gpu/drm, dated October 2026 β€” and the page title at the very bottom is drm_display...om_videomode(9) all over again, still truncated, still cute. go fill in some dmodes, you've got this πŸ§šπŸ’œ

πŸ“¦ where this page comes from