drm_atomic_private_obj_init(9)
π drm_atomic_private_obj_init(9) β the Kernel API Manual cut
okay so bestie, welcome to the glow-up era of drm_atomic_private_obj_init(9), straight out of the Kernel API Manual β¨ this is the function that gives your driver's very own private object its own atomic state, and honestly? it's giving main character energy π
πΈ NAME πΈ
drm_atomic_private_obj_init β initialize a private object, that's the whole vibe π
β¨ SYNOPSIS β¨
int drm_atomic_private_obj_init (struct drm_device *dev , struct
drm_private_obj *obj , const struct drm_private_state_funcs *funcs );
like, copy it exactly, don't @ me π
π¦ ARGUMENTS π¦
devβ the DRM device this object is gonna be attached to π«Ά it's the home base, the chosen oneobjβ the private object itself, the little guy in question π₯Ίfuncsβ pointer to the struct of function pointers that identify the object type β basically its personality card, iykyk π³
π DESCRIPTION π
okay so here's the tea β this initializes the private object, and the slay detail is that it can be embedded into any driver private object that needs its own atomic state π₯ not me being reusable and iconic, periodt π β¨
π RETURN π
- Zero on success π
- an error code on failure π (it happens, we cope)
π SEE ALSO π
the whole friend group, no cap β every single one of these is in the group chat:
- Kernel file
./drivers/gpu/drm/drm_atomic.cποΈ state lifetime(9)drm_crtc_commit_wait(9)drm_atomic_commit_default_release(9)drm_atomic_commit_init(9)drm_atomic_commit_alloc(9)drm_atomic_commit_default_clear(9)drm_atomic_commit_clear(9)__drm_atomic_commit_free(9)drm_atomic_get_crtc_state(9)drm_atomic_get_plane_state(9)drm_atomic_get_colorop_state(9)drm_atomic_get_old_colorop_state(9)drm_atomic_get_new_colorop_state(9)drm_atomic_plane_check(9)handling driver private state(9)drm_atomic_private_obj_fini(9)drm_atomic_get_private_obj_state(9)drm_atomic_get_old_private_obj_state(9)drm_atomic_get_new_private_obj_state(9)drm_atomic_get_old_connector_for_encoder(9)drm_atomic_get_new_connector_for_encoder(9)drm_atomic_get_connector_for_encoder(9)drm_atomic_get_old_crtc_for_encoder(9)drm_atomic_get_new_crtc_for_encoder(9)drm_atomic_get_connector_state(9)drm_atomic_get_bridge_state(9)drm_atomic_get_old_bridge_state(9)drm_atomic_get_new_bridge_state(9)drm_atomic_add_encoder_bridges(9)drm_atomic_add_affected_connectors(9)drm_atomic_add_affected_planes(9)drm_atomic_add_affected_colorops(9)drm_atomic_check_only(9)drm_atomic_commit(9)drm_atomic_nonblocking_commit(9)drm_atomic_print_new_state(9)drm_state_dump(9)
k that's the whole page bestie, go init something π
and for the sign-off: this lil masterpiece lives in ./drivers/gpu/drm π, dated October 2026 ποΈ, and it's the drm_atomic_private_obj_init(9) page β mwah, bye π§ββοΈππ
π¦ 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