/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1#ifndef _ASM_X86_SEMBUF_H2#define _ASM_X86_SEMBUF_H34#include <asm/ipcbuf.h>56/*7* The semid64_ds structure for x86 architecture.8* Note extra padding because this structure is passed back and forth9* between kernel and user space.10*11* Pad space is left for:12* - 2 miscellaneous 32-bit values13*14* x86_64 and x32 incorrectly added padding here, so the structures15* are still incompatible with the padding on x86.16*/17struct semid64_ds {18struct ipc64_perm sem_perm; /* permissions .. see ipc.h */19#ifdef __i386__20unsigned long sem_otime; /* last semop time */21unsigned long sem_otime_high;22unsigned long sem_ctime; /* last change time */23unsigned long sem_ctime_high;24#else25__kernel_long_t sem_otime; /* last semop time */26__kernel_ulong_t __unused1;27__kernel_long_t sem_ctime; /* last change time */28__kernel_ulong_t __unused2;29#endif30__kernel_ulong_t sem_nsems; /* no. of semaphores in array */31__kernel_ulong_t __unused3;32__kernel_ulong_t __unused4;33};3435#endif /* _ASM_X86_SEMBUF_H */363738