2017-11-01 15:08:43 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
2005-04-16 15:20:36 -07:00
|
|
|
#ifndef _PARISC_SEMBUF_H
|
|
|
|
#define _PARISC_SEMBUF_H
|
|
|
|
|
2014-11-10 22:04:47 +01:00
|
|
|
#include <asm/bitsperlong.h>
|
2019-12-04 16:53:03 -08:00
|
|
|
#include <asm/ipcbuf.h>
|
2014-11-10 22:04:47 +01:00
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
/*
|
|
|
|
* The semid64_ds structure for parisc architecture.
|
|
|
|
* Note extra padding because this structure is passed back and forth
|
|
|
|
* between kernel and user space.
|
|
|
|
*
|
|
|
|
* Pad space is left for:
|
|
|
|
* - 2 miscellaneous 32-bit values
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct semid64_ds {
|
|
|
|
struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
|
2015-05-05 23:19:43 +02:00
|
|
|
#if __BITS_PER_LONG == 64
|
2019-11-04 21:17:26 +01:00
|
|
|
long sem_otime; /* last semop time */
|
|
|
|
long sem_ctime; /* last change time */
|
2015-05-05 23:19:43 +02:00
|
|
|
#else
|
|
|
|
unsigned long sem_otime_high;
|
|
|
|
unsigned long sem_otime; /* last semop time */
|
|
|
|
unsigned long sem_ctime_high;
|
|
|
|
unsigned long sem_ctime; /* last change time */
|
|
|
|
#endif
|
|
|
|
unsigned long sem_nsems; /* no. of semaphores in array */
|
2015-11-06 23:36:01 +01:00
|
|
|
unsigned long __unused1;
|
|
|
|
unsigned long __unused2;
|
2005-04-16 15:20:36 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _PARISC_SEMBUF_H */
|