2017-11-01 15:09:13 +01:00
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2005-09-07 15:27:09 -05:00
# ifndef _ASM_POWERPC_SEMBUF_H
# define _ASM_POWERPC_SEMBUF_H
2005-04-16 15:20:36 -07:00
2005-09-01 15:51:52 -05:00
/*
2005-04-16 15:20:36 -07:00
* This program is free software ; you can redistribute it and / or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation ; either version
* 2 of the License , or ( at your option ) any later version .
2005-09-01 15:51:52 -05:00
*/
/*
* The semid64_ds structure for PPC architecture .
* Note extra padding because this structure is passed back and forth
* between kernel and user space .
2005-04-16 15:20:36 -07:00
*
* Pad space is left for :
2015-05-05 23:19:43 +02:00
* - 2 miscellaneous 32 / 64 - bit values
2005-04-16 15:20:36 -07:00
*/
struct semid64_ds {
struct ipc64_perm sem_perm ; /* permissions .. see ipc.h */
2005-09-01 15:51:52 -05:00
# ifndef __powerpc64__
2015-05-05 23:19:43 +02:00
unsigned long sem_otime_high ;
unsigned long sem_otime ; /* last semop time */
unsigned long sem_ctime_high ;
unsigned long sem_ctime ; /* last change time */
# else
2005-04-16 15:20:36 -07:00
__kernel_time_t sem_otime ; /* last semop time */
__kernel_time_t sem_ctime ; /* last change time */
2015-05-05 23:19:43 +02:00
# endif
2005-04-16 15:20:36 -07:00
unsigned long sem_nsems ; /* no. of semaphores in array */
2005-09-01 15:51:52 -05:00
unsigned long __unused3 ;
unsigned long __unused4 ;
2005-04-16 15:20:36 -07:00
} ;
2005-09-07 15:27:09 -05:00
# endif /* _ASM_POWERPC_SEMBUF_H */