msgbuf.h (498495dba268b20e8eadd7fe93c140c68b6cc9d2) msgbuf.h (b497ef570ecdeeaef4335ecc4f712cbaae0918a5)
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2/*
3 * include/asm-xtensa/msgbuf.h
4 *
5 * The msqid64_ds structure for the Xtensa architecture.
6 * Note extra padding because this structure is passed back and forth
7 * between kernel and user space.
8 *
9 * Pad space is left for:
1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2/*
3 * include/asm-xtensa/msgbuf.h
4 *
5 * The msqid64_ds structure for the Xtensa architecture.
6 * Note extra padding because this structure is passed back and forth
7 * between kernel and user space.
8 *
9 * Pad space is left for:
10 * - 64-bit time_t to solve y2038 problem
11 * - 2 miscellaneous 32-bit values
12 *
13 * This file is subject to the terms and conditions of the GNU General
14 * Public License. See the file "COPYING" in the main directory of
15 * this archive for more details.
16 */
17
18#ifndef _XTENSA_MSGBUF_H
19#define _XTENSA_MSGBUF_H
20
21struct msqid64_ds {
22 struct ipc64_perm msg_perm;
23#ifdef __XTENSA_EB__
10 * - 2 miscellaneous 32-bit values
11 *
12 * This file is subject to the terms and conditions of the GNU General
13 * Public License. See the file "COPYING" in the main directory of
14 * this archive for more details.
15 */
16
17#ifndef _XTENSA_MSGBUF_H
18#define _XTENSA_MSGBUF_H
19
20struct msqid64_ds {
21 struct ipc64_perm msg_perm;
22#ifdef __XTENSA_EB__
24 unsigned int __unused1;
25 __kernel_time_t msg_stime; /* last msgsnd time */
26 unsigned int __unused2;
27 __kernel_time_t msg_rtime; /* last msgrcv time */
28 unsigned int __unused3;
29 __kernel_time_t msg_ctime; /* last change time */
23 unsigned long msg_stime_high;
24 unsigned long msg_stime; /* last msgsnd time */
25 unsigned long msg_rtime_high;
26 unsigned long msg_rtime; /* last msgrcv time */
27 unsigned long msg_ctime_high;
28 unsigned long msg_ctime; /* last change time */
30#elif defined(__XTENSA_EL__)
29#elif defined(__XTENSA_EL__)
31 __kernel_time_t msg_stime; /* last msgsnd time */
32 unsigned int __unused1;
33 __kernel_time_t msg_rtime; /* last msgrcv time */
34 unsigned int __unused2;
35 __kernel_time_t msg_ctime; /* last change time */
36 unsigned int __unused3;
30 unsigned long msg_stime; /* last msgsnd time */
31 unsigned long msg_stime_high;
32 unsigned long msg_rtime; /* last msgrcv time */
33 unsigned long msg_rtime_high;
34 unsigned long msg_ctime; /* last change time */
35 unsigned long msg_ctime_high;
37#else
38# error processor byte order undefined!
39#endif
40 unsigned long msg_cbytes; /* current number of bytes on queue */
41 unsigned long msg_qnum; /* number of messages in queue */
42 unsigned long msg_qbytes; /* max number of bytes on queue */
43 __kernel_pid_t msg_lspid; /* pid of last msgsnd */
44 __kernel_pid_t msg_lrpid; /* last receive pid */
45 unsigned long __unused4;
46 unsigned long __unused5;
47};
48
49#endif /* _XTENSA_MSGBUF_H */
36#else
37# error processor byte order undefined!
38#endif
39 unsigned long msg_cbytes; /* current number of bytes on queue */
40 unsigned long msg_qnum; /* number of messages in queue */
41 unsigned long msg_qbytes; /* max number of bytes on queue */
42 __kernel_pid_t msg_lspid; /* pid of last msgsnd */
43 __kernel_pid_t msg_lrpid; /* last receive pid */
44 unsigned long __unused4;
45 unsigned long __unused5;
46};
47
48#endif /* _XTENSA_MSGBUF_H */