drm_crtc_commit_get(9)
π drm_crtc_commit_get(9) β Kernel API Manual π
okay bestie, welcome to the Kernel API Manual entry for drm_crtc_commit_get(9). this one is short and sweet and honestly kind of a queen β it's the refcount grabber for CRTC commits, and you're gonna slay it β¨
πΈ NAME πΈ
drm_crtc_commit_get β acquire a reference to the CRTC commit
like, you're literally just picking up a reference. that's the whole vibe check. π
π SYNOPSIS π
struct drm_crtc_commit * drm_crtc_commit_get (struct drm_crtc_commit
*commit );
π¦ ARGUMENTS π¦
commitβ CRTC commit π
(that's it. that's the only arg. she's low maintenance.)
β¨ DESCRIPTION β¨
Increases the reference of commit. π«Ά
no cap, that's the entire description. you hand her a commit, she bumps the refcount. iconic behavior, zero drama. the way that this function has exactly one job and does it β obsessed ππ
just remember: refcounts you take, you gotta give back. drm_crtc_commit_put(9) is right there in SEE ALSO, iykyk π
π RETURN π
The pointer to commit, with reference increased. πβ‘οΈπ
so like, you get the same pointer back β not a copy, not a new one, literally the one you passed in β except now the refcount is one higher and honestly? main character energy β
π₯ SEE ALSO π₯
- Kernel file
./include/drm/drm_atomic.hπ struct drm_crtc_commit(9)struct drm_private_state_funcs(9)struct drm_private_obj(9)drm_for_each_privobj(9)struct drm_private_state(9)struct drm_atomic_commit(9)drm_crtc_commit_put(9)drm_atomic_commit_get(9)drm_atomic_commit_put(9)drm_atomic_get_old_crtc_state(9)drm_atomic_get_new_crtc_state(9)drm_atomic_get_old_plane_state(9)drm_atomic_get_new_plane_state(9)drm_atomic_get_old_connector_state(9)drm_atomic_get_new_connector_state(9)__drm_atomic_get_current_plane_state(9)for_each_oldnew_connector_in_state(9)for_each_old_connector_in_state(9)for_each_new_connector_in_state(9)for_each_oldnew_crtc_in_state(9)for_each_old_crtc_in_state(9)for_each_new_crtc_in_state(9)for_each_oldnew_colorop_in_state(9)for_each_new_colorop_in_state(9)for_each_oldnew_plane_in_state(9)for_each_oldnew_plane_in_state_reverse(9)for_each_new_plane_in_state_reverse(9)for_each_old_plane_in_state(9)for_each_new_plane_in_state(9)for_each_oldnew_private_obj_in_state(9)for_each_old_private_obj_in_state(9)for_each_new_private_obj_in_state(9)drm_atomic_crtc_needs_modeset(9)drm_atomic_crtc_effectively_active(9)struct drm_bus_cfg(9)struct drm_bridge_state(9)
and that's the whole page, bestie!! π§ββοΈ
cute lil sign-off time: this one lives in ./include/drm, it's dated October 2026, and the page itself is drm_crtc_commit_get(9) π go forth and increment those refcounts responsibly, mwah ππ
π¦ 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