aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_framebuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm/drm_framebuffer.h')
-rw-r--r--include/drm/drm_framebuffer.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/drm/drm_framebuffer.h b/include/drm/drm_framebuffer.h
index 4c5ee4ae54df..c50502c656e5 100644
--- a/include/drm/drm_framebuffer.h
+++ b/include/drm/drm_framebuffer.h
@@ -121,6 +121,12 @@ struct drm_framebuffer {
121 * @base: base modeset object structure, contains the reference count. 121 * @base: base modeset object structure, contains the reference count.
122 */ 122 */
123 struct drm_mode_object base; 123 struct drm_mode_object base;
124
125 /**
126 * @comm: Name of the process allocating the fb, used for fb dumping.
127 */
128 char comm[TASK_COMM_LEN];
129
124 /** 130 /**
125 * @format: framebuffer format information 131 * @format: framebuffer format information
126 */ 132 */
@@ -264,7 +270,7 @@ static inline void drm_framebuffer_unreference(struct drm_framebuffer *fb)
264 * 270 *
265 * This functions returns the framebuffer's reference count. 271 * This functions returns the framebuffer's reference count.
266 */ 272 */
267static inline uint32_t drm_framebuffer_read_refcount(struct drm_framebuffer *fb) 273static inline uint32_t drm_framebuffer_read_refcount(const struct drm_framebuffer *fb)
268{ 274{
269 return kref_read(&fb->base.refcount); 275 return kref_read(&fb->base.refcount);
270} 276}