Name

drm_atomic_get_private_obj_state — get private object state

Synopsis

void * drm_atomic_get_private_obj_state (struct drm_atomic_state * state,
 void * obj,
 const struct drm_private_state_funcs * funcs);
 

Arguments

state

global atomic state

obj

private object to get the state for

funcs

pointer to the struct of function pointers that identify the object type

Description

This function returns the private object state for the given private object, allocating the state if needed. It does not grab any locks as the caller is expected to care of any required locking.

RETURNS

Either the allocated state or the error code encoded into a pointer.