linux/drivers/gpu/drm/drm_client.c
/**
 * drm_client_add - Add client to the device list
 * @client: DRM client
 *
 * Add the client to the &drm_device client list to activate its callbacks.
 * @client must be initialized by a call to drm_client_init(). After
 * drm_client_add() it is no longer permissible to call drm_client_release()
 * directly (outside the unregister callback), instead cleanup will happen
 * automatically on driver unload.
 */


Add the client to the &drm_device client list to activate its callbacks.
@client must be initialized by a call to drm_client_init(). After
drm_client_add() it is no longer permissible to call drm_client_release()
directly (outside the unregister callback), instead cleanup will happen
automatically on driver unload.
Add the client to the &drm_device client list to activate its callbacks . @client must be initialized by a call to drm_client_init () . After drm_client_add () it is no longer permissible to call drm_client_release () directly ( outside the unregister callback ) instead cleanup will happen automatically on driver unload .
void drm_client_add(struct drm_client_dev *client)
{
	struct drm_device *dev = client->dev;
	mutex_lock(&dev->clientlist_mutex);
	list_add(&client->list, &dev->clientlist);
	mutex_unlock(&dev->clientlist_mutex);
}
void drm_client_add ( struct drm_client_dev * client ) { struct drm_device * dev = client -> dev ; mutex_lock ( & dev -> clientlist_mutex ) ; list_add ( & client -> list , & dev -> clientlist ) ; mutex_unlock ( & dev -> clientlist_mutex ) ; }
drm_client_add - Add client to the device list
 @client: DRM client
drm_client_add - Add client to the device list @client : DRM client