shmbuf.h 1.7 KB

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