4 /*--------------------------------------------------------------------
6 * include/asm-nios2nommu/shmbuf.h
8 * Derived from m68knommu
10 * Copyright (C) 2004 Microtronix Datacom Ltd
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
23 * Jan/20/2004 dgt NiosII
25 ---------------------------------------------------------------------*/
28 /* Note extra padding because this structure is passed back and forth
29 * between kernel and user space.
31 * Pad space is left for:
32 * - 64-bit time_t to solve y2038 problem
33 * - 2 miscellaneous 32-bit values
37 struct ipc64_perm shm_perm
; /* operation perms */
38 size_t shm_segsz
; /* size of segment (bytes) */
39 __kernel_time_t shm_atime
; /* last attach time */
40 unsigned long __unused1
;
41 __kernel_time_t shm_dtime
; /* last detach time */
42 unsigned long __unused2
;
43 __kernel_time_t shm_ctime
; /* last change time */
44 unsigned long __unused3
;
45 __kernel_pid_t shm_cpid
; /* pid of creator */
46 __kernel_pid_t shm_lpid
; /* pid of last operator */
47 unsigned long shm_nattch
; /* no. of current attaches */
48 unsigned long __unused4
;
49 unsigned long __unused5
;
58 unsigned long __unused1
;
59 unsigned long __unused2
;
60 unsigned long __unused3
;
61 unsigned long __unused4
;
64 #endif /* _NIOS_SHMBUF_H */