sembuf.h (498495dba268b20e8eadd7fe93c140c68b6cc9d2) sembuf.h (b497ef570ecdeeaef4335ecc4f712cbaae0918a5)
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2/*
3 * include/asm-xtensa/sembuf.h
4 *
5 * The semid64_ds structure for Xtensa architecture.
6 *
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file "COPYING" in the main directory of this archive
9 * for more details.
10 *
11 * Copyright (C) 2001 - 2005 Tensilica Inc.
12 *
13 * Note extra padding because this structure is passed back and forth
14 * between kernel and user space.
15 *
16 * Pad space is left for:
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2/*
3 * include/asm-xtensa/sembuf.h
4 *
5 * The semid64_ds structure for Xtensa architecture.
6 *
7 * This file is subject to the terms and conditions of the GNU General Public
8 * License. See the file "COPYING" in the main directory of this archive
9 * for more details.
10 *
11 * Copyright (C) 2001 - 2005 Tensilica Inc.
12 *
13 * Note extra padding because this structure is passed back and forth
14 * between kernel and user space.
15 *
16 * Pad space is left for:
17 * - 64-bit time_t to solve y2038 problem
18 * - 2 miscellaneous 32-bit values
19 *
20 */
21
22#ifndef _XTENSA_SEMBUF_H
23#define _XTENSA_SEMBUF_H
24
25#include <asm/byteorder.h>
26
27struct semid64_ds {
28 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
29#ifdef __XTENSA_EL__
17 * - 2 miscellaneous 32-bit values
18 *
19 */
20
21#ifndef _XTENSA_SEMBUF_H
22#define _XTENSA_SEMBUF_H
23
24#include <asm/byteorder.h>
25
26struct semid64_ds {
27 struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
28#ifdef __XTENSA_EL__
30 __kernel_time_t sem_otime; /* last semop time */
31 unsigned long __unused1;
32 __kernel_time_t sem_ctime; /* last change time */
33 unsigned long __unused2;
29 unsigned long sem_otime; /* last semop time */
30 unsigned long sem_otime_high;
31 unsigned long sem_ctime; /* last change time */
32 unsigned long sem_ctime_high;
34#else
33#else
35 unsigned long __unused1;
36 __kernel_time_t sem_otime; /* last semop time */
37 unsigned long __unused2;
38 __kernel_time_t sem_ctime; /* last change time */
34 unsigned long sem_otime_high;
35 unsigned long sem_otime; /* last semop time */
36 unsigned long sem_ctime_high;
37 unsigned long sem_ctime; /* last change time */
39#endif
40 unsigned long sem_nsems; /* no. of semaphores in array */
41 unsigned long __unused3;
42 unsigned long __unused4;
43};
44
45#endif /* __ASM_XTENSA_SEMBUF_H */
38#endif
39 unsigned long sem_nsems; /* no. of semaphores in array */
40 unsigned long __unused3;
41 unsigned long __unused4;
42};
43
44#endif /* __ASM_XTENSA_SEMBUF_H */