drm_mode_plane_set_obj_prop(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_mode_plane_set_obj_prop(9)

okay bestie, welcome to the drm_mode_plane_set_obj_prop page ✨ this one's from the Kernel API Manual, and honestly? it's a little function with main character energy β€” it just sets a property on a plane and dips. let's get into it πŸŽ€


✨ NAME ✨

drm_mode_plane_set_obj_prop β€” set the value of a property 🫢

🌸 SYNOPSIS 🌸

int drm_mode_plane_set_obj_prop (struct drm_plane *plane , struct
       drm_property *property , uint64_t value );

like look at that signature. three args, returns an int, no cap πŸ”₯

πŸ¦‹ ARGUMENTS πŸ¦‹

  • plane β€” the drm plane object we're setting a property value for. this is the vibe we're editing, the main character in question πŸ‘‘
  • property β€” the property to set. which knob are we turning? this one πŸŽ›οΈ
  • value β€” the value the property should be set to. the actual number going in, uint64_t and everything πŸ’œ

πŸ’– DESCRIPTION πŸ’–

so here's the tea: this function sets a given property on a given plane object. that's it, that's the job, and it does it slayfully ✨

the way it works β€” and this part is literally the important bit β€” it calls the driver's ->set_property callback, and it changes the software state of the property if the callback succeeds. so the driver gets first dibs, and only when the driver says "yeah we're good" does the software state actually get updated. no callback success, no state change. periodt πŸ’…

ngl that conditional is doing a lot of heavy lifting, so don't skip over it β€” success of the callback is what gates the software state change, fr fr πŸ’€

⭐ RETURN ⭐

  • Zero on success 🌈
  • error code on failure 😭

(yes, that's the whole return section β€” short and iconic)

🧚 SEE ALSO 🧚

like, that's a whole friend group of plane functions and you should absolutely go meet them 🫢 iykyk πŸ¦‹


and that's the page!! πŸŽ€ sign-off time: this cutie lives under ./drivers/gpu/drm, dated October 2026, and she goes by drm_mode_plane_set_obj_prop(9) β€” mwah πŸ’‹ go set some properties, bestie πŸ’…βœ¨

πŸ“¦ where this page comes from