Path: blob/master/arch/xtensa/include/uapi/asm/sembuf.h
26498 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1/*2* include/asm-xtensa/sembuf.h3*4* The semid64_ds structure for Xtensa architecture.5*6* This file is subject to the terms and conditions of the GNU General Public7* License. See the file "COPYING" in the main directory of this archive8* for more details.9*10* Copyright (C) 2001 - 2005 Tensilica Inc.11*12* Note extra padding because this structure is passed back and forth13* between kernel and user space.14*15* Pad space is left for:16* - 2 miscellaneous 32-bit values17*18*/1920#ifndef _XTENSA_SEMBUF_H21#define _XTENSA_SEMBUF_H2223#include <asm/byteorder.h>24#include <asm/ipcbuf.h>2526struct semid64_ds {27struct ipc64_perm sem_perm; /* permissions .. see ipc.h */28#ifdef __XTENSA_EL__29unsigned long sem_otime; /* last semop time */30unsigned long sem_otime_high;31unsigned long sem_ctime; /* last change time */32unsigned long sem_ctime_high;33#else34unsigned long sem_otime_high;35unsigned long sem_otime; /* last semop time */36unsigned long sem_ctime_high;37unsigned long sem_ctime; /* last change time */38#endif39unsigned long sem_nsems; /* no. of semaphores in array */40unsigned long __unused3;41unsigned long __unused4;42};4344#endif /* __ASM_XTENSA_SEMBUF_H */454647