Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
0002 #ifndef _ASM_POWERPC_SEMBUF_H
0003 #define _ASM_POWERPC_SEMBUF_H
0004 
0005 #include <asm/ipcbuf.h>
0006 
0007 /*
0008  * This program is free software; you can redistribute it and/or
0009  * modify it under the terms of the GNU General Public License
0010  * as published by the Free Software Foundation; either version
0011  * 2 of the License, or (at your option) any later version.
0012  */
0013 
0014 /*
0015  * The semid64_ds structure for PPC architecture.
0016  * Note extra padding because this structure is passed back and forth
0017  * between kernel and user space.
0018  *
0019  * Pad space is left for:
0020  * - 2 miscellaneous 32/64-bit values
0021  */
0022 
0023 struct semid64_ds {
0024     struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
0025 #ifndef __powerpc64__
0026     unsigned long   sem_otime_high;
0027     unsigned long   sem_otime;  /* last semop time */
0028     unsigned long   sem_ctime_high;
0029     unsigned long   sem_ctime;  /* last change time */
0030 #else
0031     long        sem_otime;  /* last semop time */
0032     long        sem_ctime;  /* last change time */
0033 #endif
0034     unsigned long   sem_nsems;  /* no. of semaphores in array */
0035     unsigned long   __unused3;
0036     unsigned long   __unused4;
0037 };
0038 
0039 #endif  /* _ASM_POWERPC_SEMBUF_H */