Path: blob/master/arch/powerpc/include/uapi/asm/shmbuf.h
26516 views
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */1#ifndef _ASM_POWERPC_SHMBUF_H2#define _ASM_POWERPC_SHMBUF_H34#include <asm/ipcbuf.h>5#include <asm/posix_types.h>67/*8* This program is free software; you can redistribute it and/or9* modify it under the terms of the GNU General Public License10* as published by the Free Software Foundation; either version11* 2 of the License, or (at your option) any later version.12*/1314/*15* The shmid64_ds structure for PPC architecture.16*17* Note extra padding because this structure is passed back and forth18* between kernel and user space.19*20* Pad space is left for:21* - 2 miscellaneous 32-bit values22*/2324struct shmid64_ds {25struct ipc64_perm shm_perm; /* operation perms */26#ifdef __powerpc64__27long shm_atime; /* last attach time */28long shm_dtime; /* last detach time */29long shm_ctime; /* last change time */30#else31unsigned long shm_atime_high;32unsigned long shm_atime; /* last attach time */33unsigned long shm_dtime_high;34unsigned long shm_dtime; /* last detach time */35unsigned long shm_ctime_high;36unsigned long shm_ctime; /* last change time */37unsigned long __unused4;38#endif39__kernel_size_t shm_segsz; /* size of segment (bytes) */40__kernel_pid_t shm_cpid; /* pid of creator */41__kernel_pid_t shm_lpid; /* pid of last operator */42unsigned long shm_nattch; /* no. of current attaches */43unsigned long __unused5;44unsigned long __unused6;45};4647struct shminfo64 {48unsigned long shmmax;49unsigned long shmmin;50unsigned long shmmni;51unsigned long shmseg;52unsigned long shmall;53unsigned long __unused1;54unsigned long __unused2;55unsigned long __unused3;56unsigned long __unused4;57};5859#endif /* _ASM_POWERPC_SHMBUF_H */606162