]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blobdiff - drivers/video/tegra/nvmap/nvmap_priv.h
video: tegra: nvmap: add handle share count to debug stats
[sojka/nv-tegra/linux-3.10.git] / drivers / video / tegra / nvmap / nvmap_priv.h
index e5cd460f0a62d0399bb285d3844f53b790d66f8c..1e862710cfbb07e2cafd641ad82ac3be14d3e699 100644 (file)
@@ -129,8 +129,9 @@ struct nvmap_handle {
        u32 userflags;          /* flags passed from userspace */
        void *vaddr;            /* mapping used inside kernel */
        struct list_head vmas;  /* list of all user vma's */
-       atomic_t umap_count;    /* number of mapping from user space */
-       atomic_t kmap_count;    /* number of mappings from kernel space */
+       atomic_t umap_count;    /* number of outstanding maps from user */
+       atomic_t kmap_count;    /* number of outstanding map from kernel */
+       atomic_t share_count;   /* number of processes sharing the handle */
        struct list_head lru;   /* list head to track the lru */
        struct mutex lock;
        void *nvhost_priv;      /* nvhost private data */