Path: blob/master/arch/xtensa/include/uapi/asm/shmbuf.h
26498 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1/*2* include/asm-xtensa/shmbuf.h3*4* The shmid64_ds structure for Xtensa architecture.5* Note extra padding because this structure is passed back and forth6* between kernel and user space, but the padding is on the wrong7* side for big-endian xtensa, for historic reasons.8*9* Pad space is left for:10* - 2 miscellaneous 32-bit values11*12* This file is subject to the terms and conditions of the GNU General Public13* License. See the file "COPYING" in the main directory of this archive14* for more details.15*16* Copyright (C) 2001 - 2005 Tensilica Inc.17*/1819#ifndef _XTENSA_SHMBUF_H20#define _XTENSA_SHMBUF_H2122#include <asm/ipcbuf.h>23#include <asm/posix_types.h>2425struct shmid64_ds {26struct ipc64_perm shm_perm; /* operation perms */27__kernel_size_t shm_segsz; /* size of segment (bytes) */28unsigned long shm_atime; /* last attach time */29unsigned long shm_atime_high;30unsigned long shm_dtime; /* last detach time */31unsigned long shm_dtime_high;32unsigned long shm_ctime; /* last change time */33unsigned long shm_ctime_high;34__kernel_pid_t shm_cpid; /* pid of creator */35__kernel_pid_t shm_lpid; /* pid of last operator */36unsigned long shm_nattch; /* no. of current attaches */37unsigned long __unused4;38unsigned long __unused5;39};4041struct shminfo64 {42unsigned long shmmax;43unsigned long shmmin;44unsigned long shmmni;45unsigned long shmseg;46unsigned long shmall;47unsigned long __unused1;48unsigned long __unused2;49unsigned long __unused3;50unsigned long __unused4;51};5253#endif /* _XTENSA_SHMBUF_H */545556