6 #ifndef __IO_RZK_LINUX_H__
7 #define __IO_RZK_LINUX_H__
14 #include <sys/types.h>
15 #include <sys/ioctl.h>
19 #define MAX_PHYS_ADDR 128
55 #if __x86_64__ || __i386__
70 #elif __arm64__ || __aarch64__
88 #define READ_KERNEL_MEMORY 0x1
89 #define WRITE_KERNEL_MEMORY 0x2
90 #define READ_PROCESS_ADDR 0x3
91 #define WRITE_PROCESS_ADDR 0X4
92 #define READ_PHYSICAL_ADDR 0x5
93 #define WRITE_PHYSICAL_ADDR 0x6
94 #define GET_KERNEL_MAP 0x7
95 #define READ_CONTROL_REG 0x8
96 #define PRINT_PROC_INFO 0x9
99 #define rzk_data_size struct rzk_data
100 #define rzk_kernel_maps_size struct rzk_kernel_maps
101 #define rzk_control_reg_size struct rzk_control_reg
102 #define rzk_proc_info_size struct rzk_proc_info
104 #define rzk_data_size sizeof(struct rzk_data)
105 #define rzk_kernel_maps_size sizeof(struct rzk_kernel_maps)
106 #define rzk_control_reg_size sizeof(struct rzk_control_reg)
107 #define rzk_proc_info_size sizeof(struct rzk_proc_info)
110 #define IOCTL_READ_KERNEL_MEMORY _IOR(RZ_TYPE, READ_KERNEL_MEMORY, rzk_data_size)
111 #define IOCTL_WRITE_KERNEL_MEMORY _IOR(RZ_TYPE, WRITE_KERNEL_MEMORY, rzk_data_size)
112 #define IOCTL_READ_PROCESS_ADDR _IOR(RZ_TYPE, READ_PROCESS_ADDR, rzk_data_size)
113 #define IOCTL_WRITE_PROCESS_ADDR _IOR(RZ_TYPE, WRITE_PROCESS_ADDR, rzk_data_size)
114 #define IOCTL_READ_PHYSICAL_ADDR _IOR(RZ_TYPE, READ_PHYSICAL_ADDR, rzk_data_size)
115 #define IOCTL_WRITE_PHYSICAL_ADDR _IOR(RZ_TYPE, WRITE_PHYSICAL_ADDR, rzk_data_size)
116 #define IOCTL_GET_KERNEL_MAP _IOR(RZ_TYPE, GET_KERNEL_MAP, rzk_kernel_maps_size)
117 #define IOCTL_READ_CONTROL_REG _IOR(RZ_TYPE, READ_CONTROL_REG, rzk_control_reg_size)
118 #define IOCTL_PRINT_PROC_INFO _IOR(RZ_TYPE, PRINT_PROC_INFO, rzk_data_size)
123 #define VM_MAYSHARE 0x80
lsl lsr asr ror lsl lsr asr ror lsl lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror c1
lsl lsr asr ror lsl lsr asr ror lsl lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror lsl lsr asr ror c3
struct io_rzk_linux rzk_struct
int WriteMemory(RzIO *io, RzIODesc *iodesc, int ioctl_n, size_t pid, ut64 address, const ut8 *buf, int len)
int ReadMemory(RzIO *io, RzIODesc *iodesc, int ioctl_n, size_t pid, size_t address, ut8 *buf, int len)
int run_ioctl_command(RzIO *io, RzIODesc *iodesc, const char *buf)
static static fork const void static count static fd const char const char static newpath char char char static envp time_t static t const char static mode static whence const char static dir time_t static t unsigned static seconds const char struct utimbuf static buf static inc pid
size_t phys_addr[MAX_PHYS_ADDR]
size_t vmareastruct[4096]
ut64(WINAPI *w32_GetEnabledXStateFeatures)()