proc_mm.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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
  38. /*
  39. * Overrides for Emacs so that we follow Linus's tabbing style.
  40. * Emacs will notice this stuff at the end of the file and automatically
  41. * adjust the settings for this buffer only. This must remain at the end
  42. * of the file.
  43. * ---------------------------------------------------------------------------
  44. * Local variables:
  45. * c-file-style: "linux"
  46. * End:
  47. */