Files

37 lines
988 B
C
Executable File

#ifndef _UAPI_SDP_MM_H_
#define _UAPI_SDP_MM_H_
#include <linux/types.h>
#include <linux/ioctl.h>
#define MAX_SENSITIVE_PROC 100
/*
* struct sdp_mm_sensitive_proc_req - for setting the process as sensitive
* @proc_id - process id of the process to be set (as sensitive)
*/
struct sdp_mm_sensitive_proc_req {
unsigned int proc_id; /* in */
};
/*
* struct sdp_mm_sensitive_proc_list_resp - for querying sensitive process list
* @sensitive_proc_list_len - number of sensitive processes in the list
* @sensitive_proc_list - sensitive process list
*/
struct sdp_mm_sensitive_proc_list_resp {
unsigned int sensitive_proc_list_len;
unsigned int sensitive_proc_list[MAX_SENSITIVE_PROC];
};
#define SDP_MM_IOC_MAGIC 0x77
#define SDP_MM_IOCTL_PROC_SENSITIVE_QUERY_REQ \
_IOWR(SDP_MM_IOC_MAGIC, 1, struct sdp_mm_sensitive_proc_list_resp)
#define SDP_MM_IOCTL_SET_SENSITIVE_PROC_REQ \
_IOWR(SDP_MM_IOC_MAGIC, 2, struct sdp_mm_sensitive_proc_req)
#endif /* _UAPI_SDP_MM_H_ */