1 #include <linux/module.h>
2 #include <linux/init.h>
3 #include <linux/slab.h>
5 #include <linux/file.h>
7 #include <asm/segment.h>
8 #include <asm/uaccess.h>
10 struct file
* file_open(const char* path
, int flags
, int rights
);
11 void file_close(struct file
* file
);
12 int file_read(struct file
* file
, unsigned char* data
, unsigned int size
);
13 int file_write(struct file
* file
, unsigned char* data
, unsigned int size
);
15 int remove_file(char *path
);
16 int save_data_to_file(char *path
, char *data
, int size
);