shmbuf_powerpc.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
  2. #ifndef _ASM_POWERPC_SHMBUF_H
  3. #define _ASM_POWERPC_SHMBUF_H
  4. #include <asm/ipcbuf.h>
  5. #include <asm/posix_types.h>
  6. /*
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version
  10. * 2 of the License, or (at your option) any later version.
  11. */
  12. /*
  13. * The shmid64_ds structure for PPC architecture.
  14. *
  15. * Note extra padding because this structure is passed back and forth
  16. * between kernel and user space.
  17. *
  18. * Pad space is left for:
  19. * - 2 miscellaneous 32-bit values
  20. */
  21. struct shmid64_ds {
  22. struct ipc64_perm shm_perm; /* operation perms */
  23. #ifdef __powerpc64__
  24. long shm_atime; /* last attach time */
  25. long shm_dtime; /* last detach time */
  26. long shm_ctime; /* last change time */
  27. #else
  28. unsigned long shm_atime_high;
  29. unsigned long shm_atime; /* last attach time */
  30. unsigned long shm_dtime_high;
  31. unsigned long shm_dtime; /* last detach time */
  32. unsigned long shm_ctime_high;
  33. unsigned long shm_ctime; /* last change time */
  34. unsigned long __unused4;
  35. #endif
  36. __kernel_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 */