aboutsummaryrefslogtreecommitdiff
path: root/vboxdev.h
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-12 23:06:38 +0200
committerJavier <dev.git@javispedro.com>2022-04-12 23:06:38 +0200
commitd167af14ac9db82418e239060d3ff5e8d8dbf75a (patch)
treeda1ab4eba6801e3503f31a54f0021749993eb468 /vboxdev.h
parenta109a1193ca3cf64a29265103075922d2dd9fc1b (diff)
downloadvbados-d167af14ac9db82418e239060d3ff5e8d8dbf75a.tar.gz
vbados-d167af14ac9db82418e239060d3ff5e8d8dbf75a.zip
getattr and lock
Diffstat (limited to 'vboxdev.h')
-rw-r--r--vboxdev.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/vboxdev.h b/vboxdev.h
index 93a0a7d..15db0e1 100644
--- a/vboxdev.h
+++ b/vboxdev.h
@@ -1267,6 +1267,25 @@ typedef struct _SHFLCREATEPARMS
} SHFLCREATEPARMS;
#pragma pack(pop)
+/** Lock mode bit mask. */
+#define SHFL_LOCK_MODE_MASK (0x3)
+/** Cancel lock on the given range. */
+#define SHFL_LOCK_CANCEL (0x0)
+/** Acquire read only lock. Prevent write to the range. */
+#define SHFL_LOCK_SHARED (0x1)
+/** Acquire write lock. Prevent both write and read to the range. */
+#define SHFL_LOCK_EXCLUSIVE (0x2)
+
+/** Do not wait for lock if it can not be acquired at the time. */
+#define SHFL_LOCK_NOWAIT (0x0)
+/** Wait and acquire lock. */
+#define SHFL_LOCK_WAIT (0x4)
+
+/** Lock the specified range. */
+#define SHFL_LOCK_PARTIAL (0x0)
+/** Lock entire object. */
+#define SHFL_LOCK_ENTIRE (0x8)
+
/** @name Shared Folders mappings.
* @{
*/