18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef _SPARC_MSGBUF_H 38c2ecf20Sopenharmony_ci#define _SPARC_MSGBUF_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <asm/ipcbuf.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci/* 88c2ecf20Sopenharmony_ci * The msqid64_ds structure for sparc64 architecture. 98c2ecf20Sopenharmony_ci * Note extra padding because this structure is passed back and forth 108c2ecf20Sopenharmony_ci * between kernel and user space. 118c2ecf20Sopenharmony_ci * 128c2ecf20Sopenharmony_ci * Pad space is left for: 138c2ecf20Sopenharmony_ci * - 2 miscellaneous 32-bit values 148c2ecf20Sopenharmony_ci */ 158c2ecf20Sopenharmony_cistruct msqid64_ds { 168c2ecf20Sopenharmony_ci struct ipc64_perm msg_perm; 178c2ecf20Sopenharmony_ci#if defined(__sparc__) && defined(__arch64__) 188c2ecf20Sopenharmony_ci long msg_stime; /* last msgsnd time */ 198c2ecf20Sopenharmony_ci long msg_rtime; /* last msgrcv time */ 208c2ecf20Sopenharmony_ci long msg_ctime; /* last change time */ 218c2ecf20Sopenharmony_ci#else 228c2ecf20Sopenharmony_ci unsigned long msg_stime_high; 238c2ecf20Sopenharmony_ci unsigned long msg_stime; /* last msgsnd time */ 248c2ecf20Sopenharmony_ci unsigned long msg_rtime_high; 258c2ecf20Sopenharmony_ci unsigned long msg_rtime; /* last msgrcv time */ 268c2ecf20Sopenharmony_ci unsigned long msg_ctime_high; 278c2ecf20Sopenharmony_ci unsigned long msg_ctime; /* last change time */ 288c2ecf20Sopenharmony_ci#endif 298c2ecf20Sopenharmony_ci unsigned long msg_cbytes; /* current number of bytes on queue */ 308c2ecf20Sopenharmony_ci unsigned long msg_qnum; /* number of messages in queue */ 318c2ecf20Sopenharmony_ci unsigned long msg_qbytes; /* max number of bytes on queue */ 328c2ecf20Sopenharmony_ci __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 338c2ecf20Sopenharmony_ci __kernel_pid_t msg_lrpid; /* last receive pid */ 348c2ecf20Sopenharmony_ci unsigned long __unused1; 358c2ecf20Sopenharmony_ci unsigned long __unused2; 368c2ecf20Sopenharmony_ci}; 378c2ecf20Sopenharmony_ci#endif /* _SPARC_MSGBUF_H */ 38