Path: blob/master/arch/parisc/include/uapi/asm/shmbuf.h
26305 views
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */1#ifndef _PARISC_SHMBUF_H2#define _PARISC_SHMBUF_H34#include <asm/bitsperlong.h>5#include <asm/ipcbuf.h>6#include <asm/posix_types.h>78/*9* The shmid64_ds structure for parisc architecture.10* Note extra padding because this structure is passed back and forth11* between kernel and user space.12*13* Pad space is left for:14* - 2 miscellaneous 32-bit values15*/1617struct shmid64_ds {18struct ipc64_perm shm_perm; /* operation perms */19#if __BITS_PER_LONG == 6420long shm_atime; /* last attach time */21long shm_dtime; /* last detach time */22long shm_ctime; /* last change time */23#else24unsigned long shm_atime_high;25unsigned long shm_atime; /* last attach time */26unsigned long shm_dtime_high;27unsigned long shm_dtime; /* last detach time */28unsigned long shm_ctime_high;29unsigned long shm_ctime; /* last change time */30unsigned int __pad4;31#endif32__kernel_size_t shm_segsz; /* size of segment (bytes) */33__kernel_pid_t shm_cpid; /* pid of creator */34__kernel_pid_t shm_lpid; /* pid of last operator */35unsigned long shm_nattch; /* no. of current attaches */36unsigned long __unused1;37unsigned long __unused2;38};3940struct shminfo64 {41unsigned long shmmax;42unsigned long shmmin;43unsigned long shmmni;44unsigned long shmseg;45unsigned long shmall;46unsigned long __unused1;47unsigned long __unused2;48unsigned long __unused3;49unsigned long __unused4;50};5152#endif /* _PARISC_SHMBUF_H */535455