Rizin
unix-like reverse engineering framework and cli tools
kernelcache.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2021 Florian Märkl <info@florianmaerkl.de>
2 // SPDX-FileCopyrightText: 2019 Francesco Tamagni <mrmacete@protonmail.ch>
3 // SPDX-License-Identifier: LGPL-3.0-only
4 
5 #ifndef RZ_BIN_FORMAT_KERNELCACHE_H
6 #define RZ_BIN_FORMAT_KERNELCACHE_H
7 
8 #define RZ_BIN_MACH064 1
9 
10 #include "mach0.h"
11 
12 #include "../xnu/rz_cf_dict.h"
13 
18 
25 
29 
30 typedef struct rz_xnu_kernelcache_obj_t {
36  struct _RKextIndex *kexts;
37  struct MACH0_(obj_t) * mach0;
44 
49 
50 #endif
#define RZ_API
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
Definition: sflib.h:98
voidpf void * buf
Definition: ioapi.h:138
struct rz_xnu_kernelcache_obj_t RzXNUKernelCacheObj
struct rz_xnu_kernelcache_rebase_info_t RzXNUKernelCacheRebaseInfo
RZ_API RzBuffer * rz_xnu_kernelcache_new_rebasing_buf(RzXNUKernelCacheObj *obj)
Definition: kernelcache.c:313
RZ_API bool rz_xnu_kernelcache_needs_rebasing(RzXNUKernelCacheObj *obj)
Definition: kernelcache.c:317
RZ_API bool rz_xnu_kernelcache_parse_pointer(RzXNUKernelCacheParsedPointer *ptr, ut64 decorated_addr, RzXNUKernelCacheObj *obj)
Definition: kernelcache.c:218
struct rz_xnu_kernelcache_file_range_t RzXNUKernelCacheFileRange
RZ_API bool rz_xnu_kernelcache_buf_is_kernelcache(RzBuffer *b)
Definition: kernelcache.c:13
struct rz_xnu_kernelcache_parsed_pointer_t RzXNUKernelCacheParsedPointer
uint8_t ut8
Definition: lh5801.h:11
static int
Definition: sfsocketcall.h:114
#define b(i)
Definition: sha256.c:42
Definition: rz_io.h:59
RzXNUKernelCacheRebaseInfo * rebase_info
Definition: kernelcache.h:38
RCFValueDict * prelink_info
Definition: kernelcache.h:33
int(* original_io_read)(RzIO *io, RzIODesc *fd, ut8 *buf, int count)
Definition: kernelcache.h:39
struct _RKextIndex * kexts
Definition: kernelcache.h:36
RzXNUKernelCacheFileRange * ranges
Definition: kernelcache.h:20
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
static const z80_opcode fd[]
Definition: z80_tab.h:997