shmbuf.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #ifndef _ASM_X86_SHMBUF_H
  2. #define _ASM_X86_SHMBUF_H
  3. /*
  4. * The shmid64_ds structure for x86 architecture.
  5. * Note extra padding because this structure is passed back and forth
  6. * between kernel and user space.
  7. *
  8. * Pad space on 32 bit is left for:
  9. * - 64-bit time_t to solve y2038 problem
  10. * - 2 miscellaneous 32-bit values
  11. *
  12. * Pad space on 64 bit is left for:
  13. * - 2 miscellaneous 64-bit values
  14. */
  15. struct shmid64_ds {
  16. struct ipc64_perm shm_perm; /* operation perms */
  17. size_t shm_segsz; /* size of segment (bytes) */
  18. __kernel_time_t shm_atime; /* last attach time */
  19. #ifdef __i386__
  20. unsigned long __unused1;
  21. #endif
  22. __kernel_time_t shm_dtime; /* last detach time */
  23. #ifdef __i386__
  24. unsigned long __unused2;
  25. #endif
  26. __kernel_time_t shm_ctime; /* last change time */
  27. #ifdef __i386__
  28. unsigned long __unused3;
  29. #endif
  30. __kernel_pid_t shm_cpid; /* pid of creator */
  31. __kernel_pid_t shm_lpid; /* pid of last operator */
  32. unsigned long shm_nattch; /* no. of current attaches */
  33. unsigned long __unused4;
  34. unsigned long __unused5;
  35. };
  36. struct shminfo64 {
  37. unsigned long shmmax;
  38. unsigned long shmmin;
  39. unsigned long shmmni;
  40. unsigned long shmseg;
  41. unsigned long shmall;
  42. unsigned long __unused1;
  43. unsigned long __unused2;
  44. unsigned long __unused3;
  45. unsigned long __unused4;
  46. };
  47. #endif /* _ASM_X86_SHMBUF_H */