diff options
Diffstat (limited to 'linux-headers/include/linux/user_events.h')
-rw-r--r-- | linux-headers/include/linux/user_events.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/linux-headers/include/linux/user_events.h b/linux-headers/include/linux/user_events.h index d73e575..5afb8dc 100644 --- a/linux-headers/include/linux/user_events.h +++ b/linux-headers/include/linux/user_events.h @@ -12,11 +12,24 @@ #include <linux/ioctl.h> #define USER_EVENTS_SYSTEM "user_events" +#define USER_EVENTS_MULTI_SYSTEM "user_events_multi" #define USER_EVENTS_PREFIX "u:" /* 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, + + /* Event will be allowed to have multiple formats */ + USER_EVENT_REG_MULTI_FORMAT = 1U << 1, + + /* This value or above is currently non-ABI */ + USER_EVENT_REG_MAX = 1U << 2, +}; + /* * 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 +46,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 */ |