shmbuf.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * include/asm-xtensa/shmbuf.h
  3. *
  4. * The shmid64_ds structure for Xtensa architecture.
  5. * Note extra padding because this structure is passed back and forth
  6. * between kernel and user space.
  7. *
  8. * Pad space is left for:
  9. * - 64-bit time_t to solve y2038 problem
  10. * - 2 miscellaneous 32-bit values
  11. *
  12. * This file is subject to the terms and conditions of the GNU General Public
  13. * License. See the file "COPYING" in the main directory of this archive
  14. * for more details.
  15. *
  16. * Copyright (C) 2001 - 2005 Tensilica Inc.
  17. */
  18. #ifndef _XTENSA_SHMBUF_H
  19. #define _XTENSA_SHMBUF_H
  20. struct shmid64_ds {
  21. struct ipc64_perm shm_perm; /* operation perms */
  22. size_t shm_segsz; /* size of segment (bytes) */
  23. __kernel_time_t shm_atime; /* last attach time */
  24. unsigned long __unused1;
  25. __kernel_time_t shm_dtime; /* last detach time */
  26. unsigned long __unused2;
  27. __kernel_time_t shm_ctime; /* last change time */
  28. unsigned long __unused3;
  29. __kernel_pid_t shm_cpid; /* pid of creator */
  30. __kernel_pid_t shm_lpid; /* pid of last operator */
  31. unsigned long shm_nattch; /* no. of current attaches */
  32. unsigned long __unused4;
  33. unsigned long __unused5;
  34. };
  35. struct shminfo64 {
  36. unsigned long shmmax;
  37. unsigned long shmmin;
  38. unsigned long shmmni;
  39. unsigned long shmseg;
  40. unsigned long shmall;
  41. unsigned long __unused1;
  42. unsigned long __unused2;
  43. unsigned long __unused3;
  44. unsigned long __unused4;
  45. };
  46. #endif /* _XTENSA_SHMBUF_H */