blob: 838c59273785bf9bfb360b8b11ea0f35f59635f2 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 Cheng655a7c02013-10-16 16:09:24 -07007#ifndef __ASM_GENERIC_SHMBUF_H
8#define __ASM_GENERIC_SHMBUF_H
9#include <asm/bitsperlong.h>
Christopher Ferris10a76e62022-06-08 13:31:52 -070010#include <asm/ipcbuf.h>
11#include <asm/posix_types.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070012struct shmid64_ds {
Tao Baod7db5942015-01-28 10:07:51 -080013 struct ipc64_perm shm_perm;
Christopher Ferris10a76e62022-06-08 13:31:52 -070014 __kernel_size_t shm_segsz;
Christopher Ferris9ce28842018-10-25 12:11:39 -070015#if __BITS_PER_LONG == 64
Christopher Ferrisd32ca142020-02-04 16:16:51 -080016 long shm_atime;
17 long shm_dtime;
18 long shm_ctime;
Christopher Ferris9ce28842018-10-25 12:11:39 -070019#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 Cheng655a7c02013-10-16 16:09:24 -070026#endif
Tao Baod7db5942015-01-28 10:07:51 -080027 __kernel_pid_t shm_cpid;
28 __kernel_pid_t shm_lpid;
Christopher Ferris9ce28842018-10-25 12:11:39 -070029 unsigned long shm_nattch;
30 unsigned long __unused4;
31 unsigned long __unused5;
Ben Cheng655a7c02013-10-16 16:09:24 -070032};
Ben Cheng655a7c02013-10-16 16:09:24 -070033struct shminfo64 {
Christopher Ferris9ce28842018-10-25 12:11:39 -070034 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 Cheng655a7c02013-10-16 16:09:24 -070043};
44#endif