drm_mode_plane_set_obj_prop(9)
π 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β thedrmplane 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_tand 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 π§
- Kernel file
./drivers/gpu/drm/drm_plane.cβ the home base of all this π overview(9)standard plane properties(9)hotspot properties(9)drm_plane_create_hotspot_properties(9)drm_universal_plane_init(9)drm_plane_cleanup(9)drm_plane_from_index(9)drm_plane_force_disable(9)drm_plane_has_format(9)drm_any_plane_has_format(9)damage tracking(9)drm_plane_enable_fb_damage_clips(9)drm_plane_get_damage_clips_count(9)drm_plane_get_damage_clips(9)drm_plane_create_scaling_filter_property(9)drm_plane_add_size_hints_property(9)drm_plane_create_color_pipeline_property(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms