2017-11-01 22:09:13 +08:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
|
2005-09-08 04:27:09 +08:00
|
|
|
#ifndef _ASM_POWERPC_SEMBUF_H
|
|
|
|
#define _ASM_POWERPC_SEMBUF_H
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2005-09-02 04:51:52 +08:00
|
|
|
/*
|
2005-04-17 06:20:36 +08: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-02 04:51:52 +08: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-17 06:20:36 +08:00
|
|
|
*
|
|
|
|
* Pad space is left for:
|
2015-05-06 05:19:43 +08:00
|
|
|
* - 2 miscellaneous 32/64-bit values
|
2005-04-17 06:20:36 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
struct semid64_ds {
|
|
|
|
struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
|
2005-09-02 04:51:52 +08:00
|
|
|
#ifndef __powerpc64__
|
2015-05-06 05:19:43 +08: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-17 06:20:36 +08:00
|
|
|
__kernel_time_t sem_otime; /* last semop time */
|
|
|
|
__kernel_time_t sem_ctime; /* last change time */
|
2015-05-06 05:19:43 +08:00
|
|
|
#endif
|
2005-04-17 06:20:36 +08:00
|
|
|
unsigned long sem_nsems; /* no. of semaphores in array */
|
2005-09-02 04:51:52 +08:00
|
|
|
unsigned long __unused3;
|
|
|
|
unsigned long __unused4;
|
2005-04-17 06:20:36 +08:00
|
|
|
};
|
|
|
|
|
2005-09-08 04:27:09 +08:00
|
|
|
#endif /* _ASM_POWERPC_SEMBUF_H */
|