aboutsummaryrefslogtreecommitdiff
path: root/original/uapi/linux/user_events.h
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2024-01-19 00:47:40 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-01-19 00:47:40 +0000
commite3358b9b029365a42470f75b2525a5259a63f3b3 (patch)
tree245f1e87cdbf8539d8b26fc8546c2f69dad40082 /original/uapi/linux/user_events.h
parentbd95c9d800642a8df6067b0366b6347f061a35df (diff)
parent876b4f92ca086f756806f7fc4b88b39c46ae7e3a (diff)
downloadkernel-headers-e3358b9b029365a42470f75b2525a5259a63f3b3.tar.gz
Merge "Update to v6.7 kernel headers." into main
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 */