drm_mode_cre...rties_legacy(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_mode_create_tv_properties_legacy(9)

okay bestie so this is a page straight out of the Kernel API Manual β€” yes, that kernel β€” and it's about one very specific little function. grab a matcha, it's gonna be cute πŸ“


✨ NAME ✨

drm_mode_create_tv_properties_legacy β€” creates the TV-specific connector properties for a device. yes that's the whole vibe. it makes TV props. iconic behavior honestly πŸ’…


✨ SYNOPSIS ✨

int drm_mode_create_tv_properties_legacy (struct drm_device *dev ,
                                          unsigned int num_modes ,
                                          const char * const modes[] );

not me formatting this so you can actually read it 😭 three args, one int back, let's go 🌈


✨ ARGUMENTS ✨

  • dev β€” the DRM device. your main character. πŸ‘‘
  • num_modes β€” how many different TV formats (modes) it supports. literally just a count, bestie πŸ”’
  • modes β€” an array of pointers to strings, each one holding the name of a format. so like, a lil list of names. πŸŽ€

✨ DESCRIPTION ✨

so here's the deal 🫢 β€” this function gets called by a driver's TV initialization routine, and what it does is create the TV specific connector properties for a given device. that's it, that's the job.

and heads up: the caller is the one responsible for allocating that list of format names and passing them in. this function is not out here doing your malloc for you, ngl. you bring the list, it makes the properties. team effort fr fr ✨


✨ NOTE ✨

bestie. listen. this one registers the deprecated "mode" connector property β€” the one used to select the analog TV mode (ie, NTSC, PAL, etc.). it's giving legacy 😭

new drivers must use drm_mode_create_tv_properties instead. no cap, don't be out here using the deprecated one, that's not the move πŸ’€


✨ RETURN ✨

0 on success, or a negative error code on failure. short and sweet. slay. βœ…


✨ SEE ALSO ✨

okay this list is long long but every single one of these ate, no skips, no cuts πŸ’–


and that's the whole page, bestie, you're officially educated πŸ§šπŸ’œ

sign-off time: this lil gem lives in ./drivers/gpu/drm and it's dated October 2026 β€” so yeah, she's serving legacy, she's serving vintage, and she's still here. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from