162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 262306a36Sopenharmony_ci#ifndef _ASM_POWERPC_MSGBUF_H 362306a36Sopenharmony_ci#define _ASM_POWERPC_MSGBUF_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <asm/ipcbuf.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci/* 862306a36Sopenharmony_ci * The msqid64_ds structure for the PowerPC architecture. 962306a36Sopenharmony_ci * Note extra padding because this structure is passed back and forth 1062306a36Sopenharmony_ci * between kernel and user space. 1162306a36Sopenharmony_ci */ 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_cistruct msqid64_ds { 1462306a36Sopenharmony_ci struct ipc64_perm msg_perm; 1562306a36Sopenharmony_ci#ifdef __powerpc64__ 1662306a36Sopenharmony_ci long msg_stime; /* last msgsnd time */ 1762306a36Sopenharmony_ci long msg_rtime; /* last msgrcv time */ 1862306a36Sopenharmony_ci long msg_ctime; /* last change time */ 1962306a36Sopenharmony_ci#else 2062306a36Sopenharmony_ci unsigned long msg_stime_high; 2162306a36Sopenharmony_ci unsigned long msg_stime; /* last msgsnd time */ 2262306a36Sopenharmony_ci unsigned long msg_rtime_high; 2362306a36Sopenharmony_ci unsigned long msg_rtime; /* last msgrcv time */ 2462306a36Sopenharmony_ci unsigned long msg_ctime_high; 2562306a36Sopenharmony_ci unsigned long msg_ctime; /* last change time */ 2662306a36Sopenharmony_ci#endif 2762306a36Sopenharmony_ci unsigned long msg_cbytes; /* current number of bytes on queue */ 2862306a36Sopenharmony_ci unsigned long msg_qnum; /* number of messages in queue */ 2962306a36Sopenharmony_ci unsigned long msg_qbytes; /* max number of bytes on queue */ 3062306a36Sopenharmony_ci __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 3162306a36Sopenharmony_ci __kernel_pid_t msg_lrpid; /* last receive pid */ 3262306a36Sopenharmony_ci unsigned long __unused4; 3362306a36Sopenharmony_ci unsigned long __unused5; 3462306a36Sopenharmony_ci}; 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci#endif /* _ASM_POWERPC_MSGBUF_H */ 37