blob: 99a41938ae3db94fe42c31e48d6c42b5c2b00d70 [file] [log] [blame]
jdl@freescale.coma37c8872005-09-07 15:27:09 -05001#ifndef _ASM_POWERPC_SEMBUF_H
2#define _ASM_POWERPC_SEMBUF_H
Linus Torvalds1da177e2005-04-16 15:20:36 -07003
Jon Loeliger6b9269a2005-09-01 15:51:52 -05004/*
Linus Torvalds1da177e2005-04-16 15:20:36 -07005 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version
8 * 2 of the License, or (at your option) any later version.
Jon Loeliger6b9269a2005-09-01 15:51:52 -05009 */
10
11/*
12 * The semid64_ds structure for PPC architecture.
13 * Note extra padding because this structure is passed back and forth
14 * between kernel and user space.
Linus Torvalds1da177e2005-04-16 15:20:36 -070015 *
16 * Pad space is left for:
Jon Loeliger6b9269a2005-09-01 15:51:52 -050017 * - 64-bit time_t to solve y2038 problem
18 * - 2 miscellaneous 32-bit values
Linus Torvalds1da177e2005-04-16 15:20:36 -070019 */
20
21struct semid64_ds {
22 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
Jon Loeliger6b9269a2005-09-01 15:51:52 -050023#ifndef __powerpc64__
24 unsigned long __unused1;
25#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070026 __kernel_time_t sem_otime; /* last semop time */
Jon Loeliger6b9269a2005-09-01 15:51:52 -050027#ifndef __powerpc64__
28 unsigned long __unused2;
29#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070030 __kernel_time_t sem_ctime; /* last change time */
31 unsigned long sem_nsems; /* no. of semaphores in array */
Jon Loeliger6b9269a2005-09-01 15:51:52 -050032 unsigned long __unused3;
33 unsigned long __unused4;
Linus Torvalds1da177e2005-04-16 15:20:36 -070034};
35
jdl@freescale.coma37c8872005-09-07 15:27:09 -050036#endif /* _ASM_POWERPC_SEMBUF_H */