summaryrefslogtreecommitdiffstats
path: root/pcilib/locking.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2015-08-05 18:11:59 +0200
committerSuren A. Chilingaryan <csa@suren.me>2015-08-05 18:11:59 +0200
commit7c5897933f4f64594602b2e38264af705c061754 (patch)
treeb6051387f6e2ff6c995141ba9bcb6960ecdd0b6a /pcilib/locking.h
parentf2e47ba725cc7ba477d3a788addc974f2b18d36f (diff)
downloadpcitool-7c5897933f4f64594602b2e38264af705c061754.tar.gz
pcitool-7c5897933f4f64594602b2e38264af705c061754.tar.bz2
pcitool-7c5897933f4f64594602b2e38264af705c061754.tar.xz
pcitool-7c5897933f4f64594602b2e38264af705c061754.zip
Use global locks to protect kmem allocation to prevent race while allocating simmultaneously locking kmem pages and any other type of kmem
Diffstat (limited to 'pcilib/locking.h')
-rw-r--r--pcilib/locking.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcilib/locking.h b/pcilib/locking.h
index ae2f368..ccacd63 100644
--- a/pcilib/locking.h
+++ b/pcilib/locking.h
@@ -20,7 +20,7 @@ typedef struct pcilib_locking_s pcilib_locking_t;
struct pcilib_locking_s {
pcilib_kmem_handle_t *kmem; /**< kmem used to store mutexes */
pcilib_lock_t *locking; /**< lock used while intializing other locks */
- pcilib_lock_t *mmap; /**< lock used to protect mmap operation */
+// pcilib_lock_t *mmap; /**< lock used to protect mmap operation */
};
#ifdef __cplusplus