Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _SPARC_SEMBUF_H
0003 #define _SPARC_SEMBUF_H
0004 
0005 #include <asm/ipcbuf.h>
0006 
0007 /*
0008  * The semid64_ds structure for sparc architecture.
0009  * Note extra padding because this structure is passed back and forth
0010  * between kernel and user space.
0011  *
0012  * Pad space is left for:
0013  * - 2 miscellaneous 32-bit values
0014  */
0015 
0016 struct semid64_ds {
0017     struct ipc64_perm sem_perm;     /* permissions .. see ipc.h */
0018 #if defined(__sparc__) && defined(__arch64__)
0019     long        sem_otime;      /* last semop time */
0020     long        sem_ctime;      /* last change time */
0021 #else
0022     unsigned long   sem_otime_high;
0023     unsigned long   sem_otime;      /* last semop time */
0024     unsigned long   sem_ctime_high;
0025     unsigned long   sem_ctime;      /* last change time */
0026 #endif
0027     unsigned long   sem_nsems;      /* no. of semaphores in array */
0028     unsigned long   __unused1;
0029     unsigned long   __unused2;
0030 };
0031 
0032 #endif /* _SPARC64_SEMBUF_H */