shmbuf.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef _PPC64_SHMBUF_H
  2. #define _PPC64_SHMBUF_H
  3. /*
  4. * The shmid64_ds structure for PPC64 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 64-bit values
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License
  13. * as published by the Free Software Foundation; either version
  14. * 2 of the License, or (at your option) any later version.
  15. */
  16. struct shmid64_ds {
  17. struct ipc64_perm shm_perm; /* operation perms */
  18. __kernel_time_t shm_atime; /* last attach time */
  19. __kernel_time_t shm_dtime; /* last detach time */
  20. __kernel_time_t shm_ctime; /* last change time */
  21. size_t shm_segsz; /* size of segment (bytes) */
  22. __kernel_pid_t shm_cpid; /* pid of creator */
  23. __kernel_pid_t shm_lpid; /* pid of last operator */
  24. unsigned long shm_nattch; /* no. of current attaches */
  25. unsigned long __unused1;
  26. unsigned long __unused2;
  27. };
  28. struct shminfo64 {
  29. unsigned long shmmax;
  30. unsigned long shmmin;
  31. unsigned long shmmni;
  32. unsigned long shmseg;
  33. unsigned long shmall;
  34. unsigned long __unused1;
  35. unsigned long __unused2;
  36. unsigned long __unused3;
  37. unsigned long __unused4;
  38. };
  39. #endif /* _PPC64_SHMBUF_H */