13 #elif defined(__linux__) && !defined(__GNU__)
22 #elif defined(__linux__) && !defined(__GNU__)
31 io->
cb_printf(
"ERROR: Undefined beid in rzk__write.\n");
35 io->
cb_printf(
"TODO: rzk not implemented for this plataform.\n");
43 #elif defined(__linux__) && !defined(__GNU__)
52 io->
cb_printf(
"ERROR: Undefined beid in rzk__read.\n");
57 io->
cb_printf(
"TODO: rzk not implemented for this plataform.\n");
69 #elif defined(__linux__) && !defined(__GNU__)
74 eprintf(
"TODO: rzk not implemented for this plataform.\n");
85 return (!strncmp(
pathname,
"rzk://", 6));
89 if (!strcmp(
cmd,
"")) {
92 if (!strncmp(
cmd,
"mod", 3)) {
97 #if defined(__linux__) && !defined(__GNU__)
101 eprintf(
"Try: 'R!mod'\n '.R!mod'\n");
108 if (!strncmp(
pathname,
"rzk://", 6)) {
119 #elif defined(__linux__) && !defined(__GNU__)
122 io->
cb_printf(
"rzk__open: Error in opening /dev/rzk.");
131 io->
cb_printf(
"Not supported on this platform\n");
139 .desc =
"Kernel access API io",
151 #ifndef RZ_PLUGIN_INCORE
static static fork const void static count close
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags cmd
RZ_API void Ht_() free(HtName_(Ht) *ht)
static char * rzk__system(RzIO *io, RzIODesc *fd, const char *cmd)
static ut64 rzk__lseek(RzIO *io, RzIODesc *fd, ut64 offset, int whence)
RzIOPlugin rz_io_plugin_rzk
RZ_API RzLibStruct rizin_plugin
static int rzk__close(RzIODesc *fd)
static bool rzk__plugin_open(RzIO *io, const char *pathname, bool many)
int rzk__write(RzIO *io, RzIODesc *fd, const ut8 *buf, int count)
static RzIODesc * rzk__open(RzIO *io, const char *pathname, int rw, int mode)
static int rzk__read(RzIO *io, RzIODesc *fd, ut8 *buf, int count)
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)
#define IOCTL_READ_KERNEL_MEMORY
#define IOCTL_READ_PHYSICAL_ADDR
struct io_rzk_linux rzk_struct
#define IOCTL_WRITE_PHYSICAL_ADDR
#define IOCTL_WRITE_PROCESS_ADDR
#define IOCTL_WRITE_KERNEL_MEMORY
#define IOCTL_READ_PROCESS_ADDR
int GetSystemModules(RzIO *io)
int ReadKernelMemory(ut64 address, ut8 *buf, int len)
BOOL StartStopService(LPCTSTR lpServiceName, BOOL bStop)
int WriteKernelMemory(ut64 address, const ut8 *buf, int len)
int Init(const char *driverPath)
return memset(p, 0, total)
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 static sig const char pathname
RZ_API RzIODesc * rz_io_desc_new(RzIO *io, RzIOPlugin *plugin, const char *uri, int flags, int mode, void *data)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static const z80_opcode fd[]