-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathkernel_image.h
More file actions
40 lines (34 loc) · 785 Bytes
/
kernel_image.h
File metadata and controls
40 lines (34 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* kernel_image.h
* Brandon Azad
*
* Kernel parsing functions.
*/
#ifndef PHYSMEM__KERNEL_IMAGE_H_
#define PHYSMEM__KERNEL_IMAGE_H_
#include "kernel_slide.h"
#include <stdlib.h>
/*
* kernel_init
*
* Description:
* Initialize the kernel image.
*/
void kernel_init(void);
/*
* kernel_symbol
*
* Description:
* Find the address of the given kernel symbol. If kernel_slide is initialized, the address
* returned will be the in-memory address. Otherwise the unslid address will be returned.
*/
uint64_t kernel_symbol(const char *symbol);
/*
* kernel_search
*
* Description:
* Search for the given byte sequence in the on-disk kernel image, and return the
* corresponding in-memory address.
*/
uint64_t kernel_search(const void *data, size_t size);
#endif