linux/include/uapi/linux/user_events.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 * Copyright (c) 2021-2022, Microsoft Corporation.
 *
 * Authors:
 *   Beau Belgrave <[email protected]>
 */
#ifndef _UAPI_LINUX_USER_EVENTS_H
#define _UAPI_LINUX_USER_EVENTS_H

#include <linux/types.h>
#include <linux/ioctl.h>

#define USER_EVENTS_SYSTEM
#define USER_EVENTS_MULTI_SYSTEM
#define USER_EVENTS_PREFIX

/* Create dynamic location entry within a 32-bit value */
#define DYN_LOC(offset, size)

/* List of supported registration flags */
enum user_reg_flag {};

/*
 * Describes an event registration and stores the results of the registration.
 * This structure is passed to the DIAG_IOCSREG ioctl, callers at a minimum
 * must set the size and name_args before invocation.
 */
struct user_reg {} __attribute__((packed));

/*
 * Describes an event unregister, callers must set the size, address and bit.
 * This structure is passed to the DIAG_IOCSUNREG ioctl to disable bit updates.
 */
struct user_unreg {} __attribute__((packed));

#define DIAG_IOC_MAGIC

/* Request to register a user_event */
#define DIAG_IOCSREG

/* Request to delete a user_event */
#define DIAG_IOCSDEL

/* Requests to unregister a user_event */
#define DIAG_IOCSUNREG

#endif /* _UAPI_LINUX_USER_EVENTS_H */