]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/drm/drm_gem_shmem_helper.h
Merge tag 'sound-5.4-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
[linux.git] / include / drm / drm_gem_shmem_helper.h
index 01f514521687cddf6458e7f7f6c8fa2abd5d082e..7865e6b5d36cd91d11e9cf4b90d2b52db3352d26 100644 (file)
@@ -44,7 +44,20 @@ struct drm_gem_shmem_object {
         */
        unsigned int pages_use_count;
 
+       /**
+        * @madv: State for madvise
+        *
+        * 0 is active/inuse.
+        * A negative value is the object is purged.
+        * Positive values are driver specific and not used by the helpers.
+        */
        int madv;
+
+       /**
+        * @madv_list: List entry for madvise tracking
+        *
+        * Typically used by drivers to track purgeable objects
+        */
        struct list_head madv_list;
 
        /**