home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / src / linux-headers-2.6.17-6 / include / asm-sh64 / shmbuf.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-08-11  |  1.4 KB  |  54 lines

  1. #ifndef __ASM_SH64_SHMBUF_H
  2. #define __ASM_SH64_SHMBUF_H
  3.  
  4. /*
  5.  * This file is subject to the terms and conditions of the GNU General Public
  6.  * License.  See the file "COPYING" in the main directory of this archive
  7.  * for more details.
  8.  *
  9.  * include/asm-sh64/shmbuf.h
  10.  *
  11.  * Copyright (C) 2000, 2001  Paolo Alberelli
  12.  *
  13.  */
  14.  
  15. /*
  16.  * The shmid64_ds structure for i386 architecture.
  17.  * Note extra padding because this structure is passed back and forth
  18.  * between kernel and user space.
  19.  *
  20.  * Pad space is left for:
  21.  * - 64-bit time_t to solve y2038 problem
  22.  * - 2 miscellaneous 32-bit values
  23.  */
  24.  
  25. struct shmid64_ds {
  26.     struct ipc64_perm    shm_perm;    /* operation perms */
  27.     size_t            shm_segsz;    /* size of segment (bytes) */
  28.     __kernel_time_t        shm_atime;    /* last attach time */
  29.     unsigned long        __unused1;
  30.     __kernel_time_t        shm_dtime;    /* last detach time */
  31.     unsigned long        __unused2;
  32.     __kernel_time_t        shm_ctime;    /* last change time */
  33.     unsigned long        __unused3;
  34.     __kernel_pid_t        shm_cpid;    /* pid of creator */
  35.     __kernel_pid_t        shm_lpid;    /* pid of last operator */
  36.     unsigned long        shm_nattch;    /* no. of current attaches */
  37.     unsigned long        __unused4;
  38.     unsigned long        __unused5;
  39. };
  40.  
  41. struct shminfo64 {
  42.     unsigned long    shmmax;
  43.     unsigned long    shmmin;
  44.     unsigned long    shmmni;
  45.     unsigned long    shmseg;
  46.     unsigned long    shmall;
  47.     unsigned long    __unused1;
  48.     unsigned long    __unused2;
  49.     unsigned long    __unused3;
  50.     unsigned long    __unused4;
  51. };
  52.  
  53. #endif /* __ASM_SH64_SHMBUF_H */
  54.