linux/drivers/gpu/drm/drm_client.c
/**
 * drm_client_dev_hotplug - Send hotplug event to clients
 * @dev: DRM device
 *
 * This function calls the &drm_client_funcs.hotplug callback on the attached clients.
 *
 * drm_kms_helper_hotplug_event() calls this function, so drivers that use it
 * don't need to call this function themselves.
 */
Send hotplug event to clients
@dev: DRM device

This function calls the &drm_client_funcs.hotplug callback on the attached clients.

drm_kms_helper_hotplug_event() calls this function, so drivers that use it
don't need to call this function themselves.
Send hotplug event to clients @dev : DRM device This function calls the &drm_client_funcs . hotplug callback on the attached clients . drm_kms_helper_hotplug_event () calls this function so drivers that use it don ' t need to call this function themselves .
void drm_client_dev_hotplug(struct drm_device *dev)
{
	struct drm_client_dev *client;
	int ret;
	if (!drm_core_check_feature(dev, DRIVER_MODESET))
		return;
	mutex_lock(&dev->clientlist_mutex);
	list_for_each_entry(client, &dev->clientlist, list) {
		if (!client->funcs || !client->funcs->hotplug)
			continue;
		ret = client->funcs->hotplug(client);
		DRM_DEV_DEBUG_KMS(dev->dev, "%s: ret=%d\n", client->name, ret);
	}
	mutex_unlock(&dev->clientlist_mutex);
}
void drm_client_dev_hotplug ( struct drm_device * dev ) { struct drm_client_dev * client ; int ret ; if ( ! drm_core_check_feature ( dev , DRIVER_MODESET ) ) return ; mutex_lock ( & dev -> clientlist_mutex ) ; list_for_each_entry ( client , & dev -> clientlist , list ) { if ( ! client -> funcs || ! client -> funcs -> hotplug ) continue ; ret = client -> funcs -> hotplug ( client ) ; DRM_DEV_DEBUG_KMS ( dev -> dev , " \n " , client -> name , ret ) ; } mutex_unlock ( & dev -> clientlist_mutex ) ; }
drm_client_dev_hotplug - Send hotplug event to clients
 @dev: DRM device
drm_client_dev_hotplug - Send hotplug event to clients @dev : DRM device