|
XenevaOS
|
#include <drm_client.h>
Public Attributes | |
| struct module * | owner |
| void(* | free )(struct drm_client_dev *client) |
| void(* | unregister )(struct drm_client_dev *client) |
| int(* | restore )(struct drm_client_dev *client, bool force) |
| int(* | hotplug )(struct drm_client_dev *client) |
| int(* | suspend )(struct drm_client_dev *client) |
| int(* | resume )(struct drm_client_dev *client) |
struct drm_client_funcs - DRM client callbacks
| void(* drm_client_funcs::free) (struct drm_client_dev *client) |
@free:
Called when the client gets unregistered. Implementations should release all client-specific data and free the memory.
This callback is optional.
| int(* drm_client_funcs::hotplug) (struct drm_client_dev *client) |
@hotplug:
Called on drm_kms_helper_hotplug_event(). This callback is not called after @unregister has been called.
This callback is optional.
| struct module* drm_client_funcs::owner |
@owner: The module owner
| int(* drm_client_funcs::restore) (struct drm_client_dev *client, bool force) |
@restore:
Called on drm_lastclose(). The first client instance in the list that returns zero gets the privilege to restore and no more clients are called. This callback is not called after @unregister has been called.
Note that the core does not guarantee exclusion against concurrent drm_open(). Clients need to ensure this themselves, for example by using drm_master_internal_acquire() and drm_master_internal_release().
If the caller passes force, the client should ignore any present DRM master and restore the display anyway.
This callback is optional.
| int(* drm_client_funcs::resume) (struct drm_client_dev *client) |
@resume:
Called when resuming the device from suspend.
This callback is optional.
| int(* drm_client_funcs::suspend) (struct drm_client_dev *client) |
@suspend:
Called when suspending the device.
This callback is optional.
| void(* drm_client_funcs::unregister) (struct drm_client_dev *client) |
@unregister:
Called when &drm_device is unregistered. The client should respond by releasing its resources using drm_client_release().
This callback is optional.