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