drm_mode_set_name(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_mode_set_name(9) β€” like, the glow-up name tag for your display mode ✨

okay bestie, welcome to the Kernel API Manual page for drm_mode_set_name(9). this one's short and sweet and honestly? iconic for how much it does with so little πŸŽ€


🌸 NAME 🌸

drm_mode_set_name β€” sets the name on a mode. that's it. that's the whole job. and she does it flawlessly πŸ’…


✨ SYNOPSIS ✨

void drm_mode_set_name (struct drm_display_mode *mode );

yes, it returns void. no return value, no drama, no notes. she just does the thing and leaves πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • mode β€” the name is gonna get set in this mode. like, this is the mode that receives the name. hand her the struct, she handles the rest 🫢

πŸ“ DESCRIPTION πŸ“

okay so here's the tea: drm_mode_set_name sets the name of mode to a standard format. and that format is literally:

<hdisplay>x<vdisplay>

plus an optional 'i' suffix for interlaced modes πŸ”₯ so like, horizontal display by vertical display, and if it's interlaced you get that little i on the end. no cap, that's genuinely the whole description. main character energy with zero filler πŸ’–


🌈 SEE ALSO 🌈

the kernel file lives right here, bestie:

  • ./drivers/gpu/drm/drm_modes.c

and now the friend group β€” everybody she's associated with, all of them, no one left out of the group chat πŸ™ˆ:

like, that's the whole squad. go read them too, iykyk πŸ’œ


lowkey a reminder bestie: everything above is exactly what the page says β€” i didn't invent any behaviour, so don't go assuming extra vibes that aren't written down πŸŽ€

and that's a wrap! 🧚 this gem comes from ./drivers/gpu/drm, stamped October 2026, and it's filed under drm_mode_set_name(9) β€” mwah, go name some modes, you absolute legend πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from