shmbuf.h 1.1 KB

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