shmbuf.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. #ifndef __ASM_SH64_SHMBUF_H
  2. #define __ASM_SH64_SHMBUF_H
  3. /*
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. *
  8. * include/asm-sh64/shmbuf.h
  9. *
  10. * Copyright (C) 2000, 2001 Paolo Alberelli
  11. *
  12. */
  13. /*
  14. * The shmid64_ds structure for i386 architecture.
  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. * - 64-bit time_t to solve y2038 problem
  20. * - 2 miscellaneous 32-bit values
  21. */
  22. struct shmid64_ds {
  23. struct ipc64_perm shm_perm; /* operation perms */
  24. size_t shm_segsz; /* size of segment (bytes) */
  25. __kernel_time_t shm_atime; /* last attach time */
  26. unsigned long __unused1;
  27. __kernel_time_t shm_dtime; /* last detach time */
  28. unsigned long __unused2;
  29. __kernel_time_t shm_ctime; /* last change time */
  30. unsigned long __unused3;
  31. __kernel_pid_t shm_cpid; /* pid of creator */
  32. __kernel_pid_t shm_lpid; /* pid of last operator */
  33. unsigned long shm_nattch; /* no. of current attaches */
  34. unsigned long __unused4;
  35. unsigned long __unused5;
  36. };
  37. struct shminfo64 {
  38. unsigned long shmmax;
  39. unsigned long shmmin;
  40. unsigned long shmmni;
  41. unsigned long shmseg;
  42. unsigned long shmall;
  43. unsigned long __unused1;
  44. unsigned long __unused2;
  45. unsigned long __unused3;
  46. unsigned long __unused4;
  47. };
  48. #endif /* __ASM_SH64_SHMBUF_H */