Commit cf662edc authored by Pavel Emelyanov's avatar Pavel Emelyanov Committed by Cyrill Gorcunov

parasite: Make mmap/munmap_seized static

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent aef3c0af
...@@ -22,13 +22,6 @@ struct parasite_ctl { ...@@ -22,13 +22,6 @@ struct parasite_ctl {
extern int can_run_syscall(unsigned long ip, unsigned long start, unsigned long end); extern int can_run_syscall(unsigned long ip, unsigned long start, unsigned long end);
extern void *mmap_seized(pid_t pid, user_regs_struct_t *regs,
void *addr, size_t length, int prot,
int flags, int fd, off_t offset);
extern int munmap_seized(pid_t pid, user_regs_struct_t *regs,
void *addr, size_t length);
extern int parasite_dump_pages_seized(struct parasite_ctl *ctl, struct list_head *vma_area_list, extern int parasite_dump_pages_seized(struct parasite_ctl *ctl, struct list_head *vma_area_list,
struct cr_fdset *cr_fdset); struct cr_fdset *cr_fdset);
extern int parasite_dump_sigacts_seized(struct parasite_ctl *ctl, struct cr_fdset *cr_fdset); extern int parasite_dump_sigacts_seized(struct parasite_ctl *ctl, struct cr_fdset *cr_fdset);
......
...@@ -147,7 +147,7 @@ err: ...@@ -147,7 +147,7 @@ err:
return ret; return ret;
} }
void *mmap_seized(pid_t pid, user_regs_struct_t *regs, static void *mmap_seized(pid_t pid, user_regs_struct_t *regs,
void *addr, size_t length, int prot, void *addr, size_t length, int prot,
int flags, int fd, off_t offset) int flags, int fd, off_t offset)
{ {
...@@ -175,7 +175,7 @@ err: ...@@ -175,7 +175,7 @@ err:
return mmaped; return mmaped;
} }
int munmap_seized(pid_t pid, user_regs_struct_t *regs, static int munmap_seized(pid_t pid, user_regs_struct_t *regs,
void *addr, size_t length) void *addr, size_t length)
{ {
user_regs_struct_t params = *regs; user_regs_struct_t params = *regs;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment