aboutsummaryrefslogtreecommitdiff
path: root/original/uapi/linux/user_events.h
diff options
context:
space:
mode:
Diffstat (limited to 'original/uapi/linux/user_events.h')
-rw-r--r--original/uapi/linux/user_events.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/original/uapi/linux/user_events.h b/original/uapi/linux/user_events.h
index 2984aae..f74f3ae 100644
--- a/original/uapi/linux/user_events.h
+++ b/original/uapi/linux/user_events.h
@@ -17,6 +17,15 @@
/* Create dynamic location entry within a 32-bit value */
#define DYN_LOC(offset, size) ((size) << 16 | (offset))
+/* List of supported registration flags */
+enum user_reg_flag {
+ /* Event will not delete upon last reference closing */
+ USER_EVENT_REG_PERSIST = 1U << 0,
+
+ /* This value or above is currently non-ABI */
+ USER_EVENT_REG_MAX = 1U << 1,
+};
+
/*
* Describes an event registration and stores the results of the registration.
* This structure is passed to the DIAG_IOCSREG ioctl, callers at a minimum
@@ -33,7 +42,7 @@ struct user_reg {
/* Input: Enable size in bytes at address */
__u8 enable_size;
- /* Input: Flags for future use, set to 0 */
+ /* Input: Flags to use, if any */
__u16 flags;
/* Input: Address to update when enabled */