blob: de643bef363c1fea647e0947d7ce6ac23306ab76 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris37c3f3c2023-07-10 10:59:05 -07007#ifndef _UAPI_LINUX_USER_EVENTS_H
8#define _UAPI_LINUX_USER_EVENTS_H
9#include <linux/types.h>
10#include <linux/ioctl.h>
11#define USER_EVENTS_SYSTEM "user_events"
12#define USER_EVENTS_PREFIX "u:"
13#define DYN_LOC(offset,size) ((size) << 16 | (offset))
14struct user_reg {
15 __u32 size;
16 __u8 enable_bit;
17 __u8 enable_size;
18 __u16 flags;
19 __u64 enable_addr;
20 __u64 name_args;
21 __u32 write_index;
22} __attribute__((__packed__));
23struct user_unreg {
24 __u32 size;
25 __u8 disable_bit;
26 __u8 __reserved;
27 __u16 __reserved2;
28 __u64 disable_addr;
29} __attribute__((__packed__));
30#define DIAG_IOC_MAGIC '*'
31#define DIAG_IOCSREG _IOWR(DIAG_IOC_MAGIC, 0, struct user_reg *)
32#define DIAG_IOCSDEL _IOW(DIAG_IOC_MAGIC, 1, char *)
33#define DIAG_IOCSUNREG _IOW(DIAG_IOC_MAGIC, 2, struct user_unreg *)
34#endif