proc_mm.h 689 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
  3. * Licensed under the GPL
  4. */
  5. #ifndef __SKAS_PROC_MM_H
  6. #define __SKAS_PROC_MM_H
  7. #define MM_MMAP 54
  8. #define MM_MUNMAP 55
  9. #define MM_MPROTECT 56
  10. #define MM_COPY_SEGMENTS 57
  11. struct mm_mmap {
  12. unsigned long addr;
  13. unsigned long len;
  14. unsigned long prot;
  15. unsigned long flags;
  16. unsigned long fd;
  17. unsigned long offset;
  18. };
  19. struct mm_munmap {
  20. unsigned long addr;
  21. unsigned long len;
  22. };
  23. struct mm_mprotect {
  24. unsigned long addr;
  25. unsigned long len;
  26. unsigned int prot;
  27. };
  28. struct proc_mm_op {
  29. int op;
  30. union {
  31. struct mm_mmap mmap;
  32. struct mm_munmap munmap;
  33. struct mm_mprotect mprotect;
  34. int copy_segments;
  35. } u;
  36. };
  37. #endif