1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * include/asm-xtensa/shmbuf.h 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * The shmid64_ds structure for Xtensa architecture. 6*4882a593Smuzhiyun * Note extra padding because this structure is passed back and forth 7*4882a593Smuzhiyun * between kernel and user space, but the padding is on the wrong 8*4882a593Smuzhiyun * side for big-endian xtensa, for historic reasons. 9*4882a593Smuzhiyun * 10*4882a593Smuzhiyun * Pad space is left for: 11*4882a593Smuzhiyun * - 2 miscellaneous 32-bit values 12*4882a593Smuzhiyun * 13*4882a593Smuzhiyun * This file is subject to the terms and conditions of the GNU General Public 14*4882a593Smuzhiyun * License. See the file "COPYING" in the main directory of this archive 15*4882a593Smuzhiyun * for more details. 16*4882a593Smuzhiyun * 17*4882a593Smuzhiyun * Copyright (C) 2001 - 2005 Tensilica Inc. 18*4882a593Smuzhiyun */ 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun #ifndef _XTENSA_SHMBUF_H 21*4882a593Smuzhiyun #define _XTENSA_SHMBUF_H 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun struct shmid64_ds { 24*4882a593Smuzhiyun struct ipc64_perm shm_perm; /* operation perms */ 25*4882a593Smuzhiyun size_t shm_segsz; /* size of segment (bytes) */ 26*4882a593Smuzhiyun unsigned long shm_atime; /* last attach time */ 27*4882a593Smuzhiyun unsigned long shm_atime_high; 28*4882a593Smuzhiyun unsigned long shm_dtime; /* last detach time */ 29*4882a593Smuzhiyun unsigned long shm_dtime_high; 30*4882a593Smuzhiyun unsigned long shm_ctime; /* last change time */ 31*4882a593Smuzhiyun unsigned long shm_ctime_high; 32*4882a593Smuzhiyun __kernel_pid_t shm_cpid; /* pid of creator */ 33*4882a593Smuzhiyun __kernel_pid_t shm_lpid; /* pid of last operator */ 34*4882a593Smuzhiyun unsigned long shm_nattch; /* no. of current attaches */ 35*4882a593Smuzhiyun unsigned long __unused4; 36*4882a593Smuzhiyun unsigned long __unused5; 37*4882a593Smuzhiyun }; 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun struct shminfo64 { 40*4882a593Smuzhiyun unsigned long shmmax; 41*4882a593Smuzhiyun unsigned long shmmin; 42*4882a593Smuzhiyun unsigned long shmmni; 43*4882a593Smuzhiyun unsigned long shmseg; 44*4882a593Smuzhiyun unsigned long shmall; 45*4882a593Smuzhiyun unsigned long __unused1; 46*4882a593Smuzhiyun unsigned long __unused2; 47*4882a593Smuzhiyun unsigned long __unused3; 48*4882a593Smuzhiyun unsigned long __unused4; 49*4882a593Smuzhiyun }; 50*4882a593Smuzhiyun 51*4882a593Smuzhiyun #endif /* _XTENSA_SHMBUF_H */ 52