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