Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 #ifndef _ASM_X86_SEMBUF_H
0003 #define _ASM_X86_SEMBUF_H
0004 
0005 #include <asm/ipcbuf.h>
0006 
0007 /*
0008  * The semid64_ds structure for x86 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  * x86_64 and x32 incorrectly added padding here, so the structures
0016  * are still incompatible with the padding on x86.
0017  */
0018 struct semid64_ds {
0019     struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
0020 #ifdef __i386__
0021     unsigned long   sem_otime;  /* last semop time */
0022     unsigned long   sem_otime_high;
0023     unsigned long   sem_ctime;  /* last change time */
0024     unsigned long   sem_ctime_high;
0025 #else
0026     __kernel_long_t sem_otime;  /* last semop time */
0027     __kernel_ulong_t __unused1;
0028     __kernel_long_t sem_ctime;  /* last change time */
0029     __kernel_ulong_t __unused2;
0030 #endif
0031     __kernel_ulong_t sem_nsems; /* no. of semaphores in array */
0032     __kernel_ulong_t __unused3;
0033     __kernel_ulong_t __unused4;
0034 };
0035 
0036 #endif /* _ASM_X86_SEMBUF_H */