]> Git Repo - linux.git/blobdiff - include/drm/drm_framebuffer.h
Documentation/process/howto.rst: add a missing cross-reference
[linux.git] / include / drm / drm_framebuffer.h
index 4c5ee4ae54dfa73dc4ae47d65a4913254c892d73..c50502c656e5751374ed4e088540285fb1ee95f4 100644 (file)
@@ -121,6 +121,12 @@ struct drm_framebuffer {
         * @base: base modeset object structure, contains the reference count.
         */
        struct drm_mode_object base;
+
+       /**
+        * @comm: Name of the process allocating the fb, used for fb dumping.
+        */
+       char comm[TASK_COMM_LEN];
+
        /**
         * @format: framebuffer format information
         */
@@ -264,7 +270,7 @@ static inline void drm_framebuffer_unreference(struct drm_framebuffer *fb)
  *
  * This functions returns the framebuffer's reference count.
  */
-static inline uint32_t drm_framebuffer_read_refcount(struct drm_framebuffer *fb)
+static inline uint32_t drm_framebuffer_read_refcount(const struct drm_framebuffer *fb)
 {
        return kref_read(&fb->base.refcount);
 }
This page took 0.034978 seconds and 4 git commands to generate.