drm_atomic_g...te_obj_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… drm_atomic_g...te_obj_state(9) β€” Kernel API Manual

okay bestie, gather round, because this one is a little kernel function with a very long name and a very specific job. it lives in section 9 of the Kernel API Manual (yes, the kernel-manpage section, we're fancy here), and it's literally called drm_atomic_get_new_private_obj_state β€” the header just truncated it all cute and dramatic like drm_atomic_g...te_obj_state(9).


✨ NAME ✨

drm_atomic_get_new_private_obj_state β€”

and that's it. that's the whole description. the manpage literally leaves the dash hanging with nothing after it. no cap, she said nothing and left the group chat on read. iconic behavior, honestly.


🌸 SYNOPSIS 🌸

struct drm_private_state * drm_atomic_get_new_private_obj_state (const
struct drm_atomic_commit *state , struct drm_private_obj *obj );

so you're handing it a global atomic state (state) and a private object (obj), and it gives you back a struct drm_private_state *. that's the whole vibe. πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • state β€” the global atomic state object. like, the big picture. the main character of the whole atomic commit situation ✨
  • obj β€” the private_obj you wanna grab the state of. the specific little guy you're investigating πŸ”

πŸ’– DESCRIPTION πŸ’–

okay so here's the tea: this function hands you the new private object state for the private_obj you passed in. that's it, that's the job. she's a getter, she's focused, she's not doing side quests. πŸ‘‘

but!! and this is the important bit 🫢 β€” if that private_obj is not part of the global atomic state, you get NULL back. not an error, not a dramatic crash, just NULL. so like, vibe check your pointers before you dereference them, bestie, fr fr πŸ’€


🌈 SEE ALSO 🌈

this list is long β€” she has a lot of friends, lowkey a whole extended family of atomic helpers. iykyk. here's everyone:

ngl, if you're looking for the old one instead, that's drm_atomic_get_old_private_obj_state(9) β€” she's right there in the list, go say hi 🫢

🧚 sign-off 🧚

this little page came out of ./drivers/gpu/drm, and she's stamped October 2026 ⭐ β€” so yeah, remember the source path and the date, bestie, that's the receipt πŸ’œβœ¨πŸŽ€

πŸ“¦ where this page comes from