Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
0002 #ifndef _ASM_POWERPC_SHMBUF_H
0003 #define _ASM_POWERPC_SHMBUF_H
0004 
0005 #include <asm/ipcbuf.h>
0006 #include <asm/posix_types.h>
0007 
0008 /*
0009  * This program is free software; you can redistribute it and/or
0010  * modify it under the terms of the GNU General Public License
0011  * as published by the Free Software Foundation; either version
0012  * 2 of the License, or (at your option) any later version.
0013  */
0014 
0015 /*
0016  * The shmid64_ds structure for PPC architecture.
0017  *
0018  * Note extra padding because this structure is passed back and forth
0019  * between kernel and user space.
0020  *
0021  * Pad space is left for:
0022  * - 2 miscellaneous 32-bit values
0023  */
0024 
0025 struct shmid64_ds {
0026     struct ipc64_perm   shm_perm;   /* operation perms */
0027 #ifdef __powerpc64__
0028     long        shm_atime;  /* last attach time */
0029     long        shm_dtime;  /* last detach time */
0030     long        shm_ctime;  /* last change time */
0031 #else
0032     unsigned long       shm_atime_high;
0033     unsigned long       shm_atime;  /* last attach time */
0034     unsigned long       shm_dtime_high;
0035     unsigned long       shm_dtime;  /* last detach time */
0036     unsigned long       shm_ctime_high;
0037     unsigned long       shm_ctime;  /* last change time */
0038     unsigned long       __unused4;
0039 #endif
0040     __kernel_size_t     shm_segsz;  /* size of segment (bytes) */
0041     __kernel_pid_t      shm_cpid;   /* pid of creator */
0042     __kernel_pid_t      shm_lpid;   /* pid of last operator */
0043     unsigned long       shm_nattch; /* no. of current attaches */
0044     unsigned long       __unused5;
0045     unsigned long       __unused6;
0046 };
0047 
0048 struct shminfo64 {
0049     unsigned long   shmmax;
0050     unsigned long   shmmin;
0051     unsigned long   shmmni;
0052     unsigned long   shmseg;
0053     unsigned long   shmall;
0054     unsigned long   __unused1;
0055     unsigned long   __unused2;
0056     unsigned long   __unused3;
0057     unsigned long   __unused4;
0058 };
0059 
0060 #endif  /* _ASM_POWERPC_SHMBUF_H */