M7350/kernel/arch/parisc/include/uapi/asm/shmbuf.h

54 lines
1.3 KiB
C
Raw Permalink Normal View History

2024-09-09 08:57:42 +00:00
#ifndef _PARISC_SHMBUF_H
#define _PARISC_SHMBUF_H
#include <asm/bitsperlong.h>
2024-09-09 08:52:07 +00:00
/*
2024-09-09 08:57:42 +00:00
* The shmid64_ds structure for parisc architecture.
2024-09-09 08:52:07 +00:00
* Note extra padding because this structure is passed back and forth
* between kernel and user space.
*
* Pad space is left for:
* - 64-bit time_t to solve y2038 problem
* - 2 miscellaneous 32-bit values
*/
struct shmid64_ds {
struct ipc64_perm shm_perm; /* operation perms */
2024-09-09 08:57:42 +00:00
#if __BITS_PER_LONG != 64
unsigned int __pad1;
#endif
2024-09-09 08:52:07 +00:00
__kernel_time_t shm_atime; /* last attach time */
2024-09-09 08:57:42 +00:00
#if __BITS_PER_LONG != 64
unsigned int __pad2;
#endif
2024-09-09 08:52:07 +00:00
__kernel_time_t shm_dtime; /* last detach time */
2024-09-09 08:57:42 +00:00
#if __BITS_PER_LONG != 64
unsigned int __pad3;
#endif
2024-09-09 08:52:07 +00:00
__kernel_time_t shm_ctime; /* last change time */
2024-09-09 08:57:42 +00:00
#if __BITS_PER_LONG != 64
unsigned int __pad4;
#endif
2024-09-09 08:52:07 +00:00
size_t shm_segsz; /* size of segment (bytes) */
__kernel_pid_t shm_cpid; /* pid of creator */
__kernel_pid_t shm_lpid; /* pid of last operator */
2024-09-09 08:57:42 +00:00
unsigned int shm_nattch; /* no. of current attaches */
unsigned int __unused1;
unsigned int __unused2;
2024-09-09 08:52:07 +00:00
};
struct shminfo64 {
unsigned long shmmax;
unsigned long shmmin;
unsigned long shmmni;
unsigned long shmseg;
unsigned long shmall;
unsigned long __unused1;
unsigned long __unused2;
unsigned long __unused3;
unsigned long __unused4;
};
2024-09-09 08:57:42 +00:00
#endif /* _PARISC_SHMBUF_H */