xref: /openbmc/linux/arch/powerpc/include/uapi/asm/sembuf.h (revision c3617f72036c909e1f6086b5b9e364e0ef90a6da)
1*c3617f72SDavid Howells #ifndef _ASM_POWERPC_SEMBUF_H
2*c3617f72SDavid Howells #define _ASM_POWERPC_SEMBUF_H
3*c3617f72SDavid Howells 
4*c3617f72SDavid Howells /*
5*c3617f72SDavid Howells  * This program is free software; you can redistribute it and/or
6*c3617f72SDavid Howells  * modify it under the terms of the GNU General Public License
7*c3617f72SDavid Howells  * as published by the Free Software Foundation; either version
8*c3617f72SDavid Howells  * 2 of the License, or (at your option) any later version.
9*c3617f72SDavid Howells  */
10*c3617f72SDavid Howells 
11*c3617f72SDavid Howells /*
12*c3617f72SDavid Howells  * The semid64_ds structure for PPC architecture.
13*c3617f72SDavid Howells  * Note extra padding because this structure is passed back and forth
14*c3617f72SDavid Howells  * between kernel and user space.
15*c3617f72SDavid Howells  *
16*c3617f72SDavid Howells  * Pad space is left for:
17*c3617f72SDavid Howells  * - 64-bit time_t to solve y2038 problem
18*c3617f72SDavid Howells  * - 2 miscellaneous 32-bit values
19*c3617f72SDavid Howells  */
20*c3617f72SDavid Howells 
21*c3617f72SDavid Howells struct semid64_ds {
22*c3617f72SDavid Howells 	struct ipc64_perm sem_perm;	/* permissions .. see ipc.h */
23*c3617f72SDavid Howells #ifndef __powerpc64__
24*c3617f72SDavid Howells 	unsigned long	__unused1;
25*c3617f72SDavid Howells #endif
26*c3617f72SDavid Howells 	__kernel_time_t	sem_otime;	/* last semop time */
27*c3617f72SDavid Howells #ifndef __powerpc64__
28*c3617f72SDavid Howells 	unsigned long	__unused2;
29*c3617f72SDavid Howells #endif
30*c3617f72SDavid Howells 	__kernel_time_t	sem_ctime;	/* last change time */
31*c3617f72SDavid Howells 	unsigned long	sem_nsems;	/* no. of semaphores in array */
32*c3617f72SDavid Howells 	unsigned long	__unused3;
33*c3617f72SDavid Howells 	unsigned long	__unused4;
34*c3617f72SDavid Howells };
35*c3617f72SDavid Howells 
36*c3617f72SDavid Howells #endif	/* _ASM_POWERPC_SEMBUF_H */
37