18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef _PARISC_SEMBUF_H 38c2ecf20Sopenharmony_ci#define _PARISC_SEMBUF_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <asm/bitsperlong.h> 68c2ecf20Sopenharmony_ci#include <asm/ipcbuf.h> 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci/* 98c2ecf20Sopenharmony_ci * The semid64_ds structure for parisc architecture. 108c2ecf20Sopenharmony_ci * Note extra padding because this structure is passed back and forth 118c2ecf20Sopenharmony_ci * between kernel and user space. 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * Pad space is left for: 148c2ecf20Sopenharmony_ci * - 2 miscellaneous 32-bit values 158c2ecf20Sopenharmony_ci */ 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_cistruct semid64_ds { 188c2ecf20Sopenharmony_ci struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ 198c2ecf20Sopenharmony_ci#if __BITS_PER_LONG == 64 208c2ecf20Sopenharmony_ci long sem_otime; /* last semop time */ 218c2ecf20Sopenharmony_ci long sem_ctime; /* last change time */ 228c2ecf20Sopenharmony_ci#else 238c2ecf20Sopenharmony_ci unsigned long sem_otime_high; 248c2ecf20Sopenharmony_ci unsigned long sem_otime; /* last semop time */ 258c2ecf20Sopenharmony_ci unsigned long sem_ctime_high; 268c2ecf20Sopenharmony_ci unsigned long sem_ctime; /* last change time */ 278c2ecf20Sopenharmony_ci#endif 288c2ecf20Sopenharmony_ci unsigned long sem_nsems; /* no. of semaphores in array */ 298c2ecf20Sopenharmony_ci unsigned long __unused1; 308c2ecf20Sopenharmony_ci unsigned long __unused2; 318c2ecf20Sopenharmony_ci}; 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci#endif /* _PARISC_SEMBUF_H */ 34