shmbuf.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef _ASM_POWERPC_SHMBUF_H
  2. #define _ASM_POWERPC_SHMBUF_H
  3. /*
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version
  7. * 2 of the License, or (at your option) any later version.
  8. */
  9. /*
  10. * The shmid64_ds structure for PPC architecture.
  11. *
  12. * Note extra padding because this structure is passed back and forth
  13. * between kernel and user space.
  14. *
  15. * Pad space is left for:
  16. * - 64-bit time_t to solve y2038 problem
  17. * - 2 miscellaneous 32-bit values
  18. */
  19. struct shmid64_ds {
  20. struct ipc64_perm shm_perm; /* operation perms */
  21. #ifndef __powerpc64__
  22. unsigned long __unused1;
  23. #endif
  24. __kernel_time_t shm_atime; /* last attach time */
  25. #ifndef __powerpc64__
  26. unsigned long __unused2;
  27. #endif
  28. __kernel_time_t shm_dtime; /* last detach time */
  29. #ifndef __powerpc64__
  30. unsigned long __unused3;
  31. #endif
  32. __kernel_time_t shm_ctime; /* last change time */
  33. #ifndef __powerpc64__
  34. unsigned long __unused4;
  35. #endif
  36. size_t shm_segsz; /* size of segment (bytes) */
  37. __kernel_pid_t shm_cpid; /* pid of creator */
  38. __kernel_pid_t shm_lpid; /* pid of last operator */
  39. unsigned long shm_nattch; /* no. of current attaches */
  40. unsigned long __unused5;
  41. unsigned long __unused6;
  42. };
  43. struct shminfo64 {
  44. unsigned long shmmax;
  45. unsigned long shmmin;
  46. unsigned long shmmni;
  47. unsigned long shmseg;
  48. unsigned long shmall;
  49. unsigned long __unused1;
  50. unsigned long __unused2;
  51. unsigned long __unused3;
  52. unsigned long __unused4;
  53. };
  54. #endif /* _ASM_POWERPC_SHMBUF_H */