drm_mode_cre...n_properties(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_mode_create_tv_margin_properties(9) β€” Kernel API Manual πŸŽ€

okay so bestie, we're in the Kernel API Manual today and the star of the show is drm_mode_create_tv_margin_properties(9) β€” say that five times fast, i literally dare you πŸ’€. anyway she's iconic, she's niche, she makes TV margins exist, let's get into it ✨


🌸 NAME 🌸

drm_mode_create_tv_margin_properties β€” create TV connector margin properties 🫢

like. the whole job. creating margin properties for TV connectors. no cap.


πŸ¦‹ SYNOPSIS πŸ¦‹

int drm_mode_create_tv_margin_properties (struct drm_device *dev );

that's her signature. that's the whole vibe. int in, int out, one struct drm_device *dev and we're done πŸ’…


πŸ“ ARGUMENTS πŸ“

  • dev β€” the DRM device πŸ’– that's it. that's the whole argument list. the DRM device in question, the main character of this operation πŸ‘‘

✨ DESCRIPTION ✨

okay so picture this: a driver's HDMI connector initialization routine is doing its little routine (as one does), and it calls this function to create the TV margin properties for a given device πŸŽ€ that's literally the whole thing, and honestly? she ate.

but here's the part where you need to pay attention bestie, because this is a do not do the extra work situation:

no need to call this function for an SDTV connector πŸ™ˆ it's already called from drm_mode_create_tv_properties_legacy πŸ’– so like, it's handled. it's giving "someone already brought a gift to the party, don't show up with a second one." don't double-dip. don't be that driver. 🌈

⭐ RETURN ⭐

  • 0 on success πŸ₯³ slay
  • a negative error code on failure 😭 not slay, but at least you'll know

πŸ‘‘ SEE ALSO πŸ‘‘

okay this list is long long, but i refuse to leave a single one of these out because every single one of them is somebody's fave. buckle up buttercup, we're going on a tour πŸ’œ

iykyk πŸ’… (and yes, standard connector properties(9) really does show up twice in there β€” we don't gatekeep, we don't edit, we list. periodt. πŸ‘‘)


and that's the page, bestie πŸ§šπŸ’– this little angel lives over in ./drivers/gpu/drm, dated October 2026, and she goes by drm_mode_cre...n_properties(9) when she's being fancy at the top of the page πŸŽ€ go forth and create those margins, and remember: not for SDTV, it's already handled 🌸🫢

πŸ“¦ where this page comes from