Move module init and cleanup into separate functions.
[ksplice.git] / kmodsrc / primary.h
blob01e4e55691df2407a1d0420d132d08e102627cd4
1 int init_module(void);
2 void cleanup_module(void);
3 void cleanup_ksplice_module(struct module_pack *pack);
4 int activate_primary(struct module_pack *pack);
5 int resolve_patch_symbols(struct module_pack *pack);
6 int procfile_read(char *buffer, char **buffer_location, off_t offset,
7 int buffer_length, int *eof, void *data);
8 int procfile_write(struct file *file, const char *buffer,
9 unsigned long count, void *data);
10 int __apply_patches(void *packptr);
11 int __reverse_patches(void *packptr);
12 int check_each_task(struct module_pack *pack);
13 int check_task(struct module_pack *pack, struct task_struct *t);
14 int check_stack(struct module_pack *pack, struct thread_info *tinfo,
15 long *stack);
16 int check_address_for_conflict(struct module_pack *pack, long addr);
17 int valid_stack_ptr(struct thread_info *tinfo, void *p);