shmbuf.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef _ASM_SHMBUF_H
  2. #define _ASM_SHMBUF_H
  3. /*
  4. * The shmid64_ds structure for the MIPS 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. * - 2 miscellaneous 32-bit rsp. 64-bit values
  10. */
  11. struct shmid64_ds {
  12. struct ipc64_perm shm_perm; /* operation perms */
  13. size_t shm_segsz; /* size of segment (bytes) */
  14. __kernel_time_t shm_atime; /* last attach time */
  15. __kernel_time_t shm_dtime; /* last detach time */
  16. __kernel_time_t shm_ctime; /* last change time */
  17. __kernel_pid_t shm_cpid; /* pid of creator */
  18. __kernel_pid_t shm_lpid; /* pid of last operator */
  19. unsigned long shm_nattch; /* no. of current attaches */
  20. unsigned long __unused1;
  21. unsigned long __unused2;
  22. };
  23. struct shminfo64 {
  24. unsigned long shmmax;
  25. unsigned long shmmin;
  26. unsigned long shmmni;
  27. unsigned long shmseg;
  28. unsigned long shmall;
  29. unsigned long __unused1;
  30. unsigned long __unused2;
  31. unsigned long __unused3;
  32. unsigned long __unused4;
  33. };
  34. #endif /* _ASM_SHMBUF_H */