MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-nios2nommu / shmbuf.h
blobf6e6e7ddd26a9b4eaec348694a46f982839d5194
1 #ifndef _NIOS_SHMBUF_H
2 #define _NIOS_SHMBUF_H
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
36 struct shmid64_ds {
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;
52 struct shminfo64 {
53 unsigned long shmmax;
54 unsigned long shmmin;
55 unsigned long shmmni;
56 unsigned long shmseg;
57 unsigned long shmall;
58 unsigned long __unused1;
59 unsigned long __unused2;
60 unsigned long __unused3;
61 unsigned long __unused4;
64 #endif /* _NIOS_SHMBUF_H */