18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 28c2ecf20Sopenharmony_ci#ifndef _ASM_POWERPC_MSGBUF_H 38c2ecf20Sopenharmony_ci#define _ASM_POWERPC_MSGBUF_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#include <asm/ipcbuf.h> 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci/* 88c2ecf20Sopenharmony_ci * The msqid64_ds structure for the PowerPC 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 138c2ecf20Sopenharmony_cistruct msqid64_ds { 148c2ecf20Sopenharmony_ci struct ipc64_perm msg_perm; 158c2ecf20Sopenharmony_ci#ifdef __powerpc64__ 168c2ecf20Sopenharmony_ci long msg_stime; /* last msgsnd time */ 178c2ecf20Sopenharmony_ci long msg_rtime; /* last msgrcv time */ 188c2ecf20Sopenharmony_ci long msg_ctime; /* last change time */ 198c2ecf20Sopenharmony_ci#else 208c2ecf20Sopenharmony_ci unsigned long msg_stime_high; 218c2ecf20Sopenharmony_ci unsigned long msg_stime; /* last msgsnd time */ 228c2ecf20Sopenharmony_ci unsigned long msg_rtime_high; 238c2ecf20Sopenharmony_ci unsigned long msg_rtime; /* last msgrcv time */ 248c2ecf20Sopenharmony_ci unsigned long msg_ctime_high; 258c2ecf20Sopenharmony_ci unsigned long msg_ctime; /* last change time */ 268c2ecf20Sopenharmony_ci#endif 278c2ecf20Sopenharmony_ci unsigned long msg_cbytes; /* current number of bytes on queue */ 288c2ecf20Sopenharmony_ci unsigned long msg_qnum; /* number of messages in queue */ 298c2ecf20Sopenharmony_ci unsigned long msg_qbytes; /* max number of bytes on queue */ 308c2ecf20Sopenharmony_ci __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 318c2ecf20Sopenharmony_ci __kernel_pid_t msg_lrpid; /* last receive pid */ 328c2ecf20Sopenharmony_ci unsigned long __unused4; 338c2ecf20Sopenharmony_ci unsigned long __unused5; 348c2ecf20Sopenharmony_ci}; 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci#endif /* _ASM_POWERPC_MSGBUF_H */ 37