shmbuf.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef _ALPHA_SHMBUF_H
  3. #define _ALPHA_SHMBUF_H
  4. /*
  5. * The shmid64_ds structure for alpha architecture.
  6. * Note extra padding because this structure is passed back and forth
  7. * between kernel and user space.
  8. *
  9. * Pad space is left for:
  10. * - 2 miscellaneous 64-bit values
  11. */
  12. struct shmid64_ds {
  13. struct ipc64_perm shm_perm; /* operation perms */
  14. size_t shm_segsz; /* size of segment (bytes) */
  15. __kernel_time_t shm_atime; /* last attach time */
  16. __kernel_time_t shm_dtime; /* last detach time */
  17. __kernel_time_t shm_ctime; /* last change time */
  18. __kernel_pid_t shm_cpid; /* pid of creator */
  19. __kernel_pid_t shm_lpid; /* pid of last operator */
  20. unsigned long shm_nattch; /* no. of current attaches */
  21. unsigned long __unused1;
  22. unsigned long __unused2;
  23. };
  24. struct shminfo64 {
  25. unsigned long shmmax;
  26. unsigned long shmmin;
  27. unsigned long shmmni;
  28. unsigned long shmseg;
  29. unsigned long shmall;
  30. unsigned long __unused1;
  31. unsigned long __unused2;
  32. unsigned long __unused3;
  33. unsigned long __unused4;
  34. };
  35. #endif /* _ALPHA_SHMBUF_H */