drm: Add four ioctls for managing drm mode object leases [v7]
drm_mode_create_lease Creates a lease for a list of drm mode objects, returning an fd for the new drm_master and a 64-bit identifier for the lessee drm_mode_list_lesees List the identifiers of the lessees for a master file drm_mode_get_lease List the leased objects for a master file drm_mode_revoke_lease Erase the set of objects managed by a lease. This should suffice to at least create and query leases. Changes for v2 as suggested by Daniel Vetter <daniel.vetter@ffwll.ch>: * query ioctls only query the master associated with the provided file. * 'mask_lease' value has been removed * change ioctl has been removed. Changes for v3 suggested in part by Dave Airlie <airlied@gmail.com> * Add revoke ioctl. Changes for v4 suggested by Dave Airlie <airlied@gmail.com> * Expand on the comment about the magic use of &drm_lease_idr_object * Pad lease ioctl structures to align on 64-bit boundaries Changes for v5 suggested by D...
Showing
- drivers/gpu/drm/drm_ioctl.c 4 additions, 0 deletionsdrivers/gpu/drm/drm_ioctl.c
- drivers/gpu/drm/drm_lease.c 412 additions, 0 deletionsdrivers/gpu/drm/drm_lease.c
- drivers/gpu/drm/drm_mode_object.c 3 additions, 2 deletionsdrivers/gpu/drm/drm_mode_object.c
- include/drm/drm_lease.h 12 additions, 0 deletionsinclude/drm/drm_lease.h
- include/drm/drm_mode_object.h 2 additions, 0 deletionsinclude/drm/drm_mode_object.h
- include/uapi/drm/drm.h 5 additions, 0 deletionsinclude/uapi/drm/drm.h
- include/uapi/drm/drm_mode.h 66 additions, 0 deletionsinclude/uapi/drm/drm_mode.h
Please register or sign in to comment