Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is auto-generated. Modifications will be lost. |
| 3 | * |
| 4 | * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/ |
| 5 | * for more information. |
| 6 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef __ASM_GENERIC_SHMBUF_H |
| 8 | #define __ASM_GENERIC_SHMBUF_H |
| 9 | #include <asm/bitsperlong.h> |
Christopher Ferris | 10a76e6 | 2022-06-08 13:31:52 -0700 | [diff] [blame] | 10 | #include <asm/ipcbuf.h> |
| 11 | #include <asm/posix_types.h> |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 12 | struct shmid64_ds { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 13 | struct ipc64_perm shm_perm; |
Christopher Ferris | 10a76e6 | 2022-06-08 13:31:52 -0700 | [diff] [blame] | 14 | __kernel_size_t shm_segsz; |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 15 | #if __BITS_PER_LONG == 64 |
Christopher Ferris | d32ca14 | 2020-02-04 16:16:51 -0800 | [diff] [blame] | 16 | long shm_atime; |
| 17 | long shm_dtime; |
| 18 | long shm_ctime; |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 19 | #else |
| 20 | unsigned long shm_atime; |
| 21 | unsigned long shm_atime_high; |
| 22 | unsigned long shm_dtime; |
| 23 | unsigned long shm_dtime_high; |
| 24 | unsigned long shm_ctime; |
| 25 | unsigned long shm_ctime_high; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 26 | #endif |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 27 | __kernel_pid_t shm_cpid; |
| 28 | __kernel_pid_t shm_lpid; |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 29 | unsigned long shm_nattch; |
| 30 | unsigned long __unused4; |
| 31 | unsigned long __unused5; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 32 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 33 | struct shminfo64 { |
Christopher Ferris | 9ce2884 | 2018-10-25 12:11:39 -0700 | [diff] [blame] | 34 | unsigned long shmmax; |
| 35 | unsigned long shmmin; |
| 36 | unsigned long shmmni; |
| 37 | unsigned long shmseg; |
| 38 | unsigned long shmall; |
| 39 | unsigned long __unused1; |
| 40 | unsigned long __unused2; |
| 41 | unsigned long __unused3; |
| 42 | unsigned long __unused4; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | }; |
| 44 | #endif |