Skip to content

Commit 17ce9c6

Browse files
committed
drm: document DRM_IOCTL_MODE_RMFB
Since there's no struct to attach the docs to, document the IOCTL definition. Signed-off-by: Simon Ser <[email protected]> Reviewed-by: Pekka Paalanen <[email protected]> Reviewed-by: Daniel Vetter <[email protected]> Cc: Leandro Ribeiro <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent df26600 commit 17ce9c6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

include/uapi/drm/drm.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,16 @@ extern "C" {
10501050
#define DRM_IOCTL_MODE_GETPROPBLOB DRM_IOWR(0xAC, struct drm_mode_get_blob)
10511051
#define DRM_IOCTL_MODE_GETFB DRM_IOWR(0xAD, struct drm_mode_fb_cmd)
10521052
#define DRM_IOCTL_MODE_ADDFB DRM_IOWR(0xAE, struct drm_mode_fb_cmd)
1053+
/**
1054+
* DRM_IOCTL_MODE_RMFB - Remove a framebuffer.
1055+
*
1056+
* This removes a framebuffer previously added via ADDFB/ADDFB2. The IOCTL
1057+
* argument is a framebuffer object ID.
1058+
*
1059+
* Warning: removing a framebuffer currently in-use on an enabled plane will
1060+
* disable that plane. The CRTC the plane is linked to may also be disabled
1061+
* (depending on driver capabilities).
1062+
*/
10531063
#define DRM_IOCTL_MODE_RMFB DRM_IOWR(0xAF, unsigned int)
10541064
#define DRM_IOCTL_MODE_PAGE_FLIP DRM_IOWR(0xB0, struct drm_mode_crtc_page_flip)
10551065
#define DRM_IOCTL_MODE_DIRTYFB DRM_IOWR(0xB1, struct drm_mode_fb_dirty_cmd)

0 commit comments

Comments
 (0)