blob: 80dc0008fb5f54522a03ea1369ef20ff447b767e (
plain)
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
|
#include <linux/module.h>
#include <linux/types.h>
#include <linux/module.h>
#include <cbfs.h>
#define DRIVER_NAME "cbfs_poc"
static int init_cbfs_poc(void)
{
struct cbfs_header* header;
setup_cbfs_from_flash();
header = get_cbfs_header();
if (header == (void*)0xffffffff)
printk("Header not found!\n");
else
printk("Header found at address %p\n", header);
return 0;
}
module_init(init_cbfs_poc);
static void exit_cbfs_poc(void)
{
}
module_exit(exit_cbfs_poc);
|