162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 262306a36Sopenharmony_ci#ifndef _SPARC_MSGBUF_H 362306a36Sopenharmony_ci#define _SPARC_MSGBUF_H 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci#include <asm/ipcbuf.h> 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci/* 862306a36Sopenharmony_ci * The msqid64_ds structure for sparc64 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 * Pad space is left for: 1362306a36Sopenharmony_ci * - 2 miscellaneous 32-bit values 1462306a36Sopenharmony_ci */ 1562306a36Sopenharmony_cistruct msqid64_ds { 1662306a36Sopenharmony_ci struct ipc64_perm msg_perm; 1762306a36Sopenharmony_ci#if defined(__sparc__) && defined(__arch64__) 1862306a36Sopenharmony_ci long msg_stime; /* last msgsnd time */ 1962306a36Sopenharmony_ci long msg_rtime; /* last msgrcv time */ 2062306a36Sopenharmony_ci long msg_ctime; /* last change time */ 2162306a36Sopenharmony_ci#else 2262306a36Sopenharmony_ci unsigned long msg_stime_high; 2362306a36Sopenharmony_ci unsigned long msg_stime; /* last msgsnd time */ 2462306a36Sopenharmony_ci unsigned long msg_rtime_high; 2562306a36Sopenharmony_ci unsigned long msg_rtime; /* last msgrcv time */ 2662306a36Sopenharmony_ci unsigned long msg_ctime_high; 2762306a36Sopenharmony_ci unsigned long msg_ctime; /* last change time */ 2862306a36Sopenharmony_ci#endif 2962306a36Sopenharmony_ci unsigned long msg_cbytes; /* current number of bytes on queue */ 3062306a36Sopenharmony_ci unsigned long msg_qnum; /* number of messages in queue */ 3162306a36Sopenharmony_ci unsigned long msg_qbytes; /* max number of bytes on queue */ 3262306a36Sopenharmony_ci __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 3362306a36Sopenharmony_ci __kernel_pid_t msg_lrpid; /* last receive pid */ 3462306a36Sopenharmony_ci unsigned long __unused1; 3562306a36Sopenharmony_ci unsigned long __unused2; 3662306a36Sopenharmony_ci}; 3762306a36Sopenharmony_ci#endif /* _SPARC_MSGBUF_H */ 38