veil_shmem.h File Reference


Detailed Description

Define the basic veil shared memory structures.

     Author:       Marc Munro
     Copyright (c) 2005 - 2011 Marc Munro
     License:      BSD

Definition in file veil_shmem.h.

#include "utils/hsearch.h"
#include "storage/lwlock.h"

Include dependency graph for veil_shmem.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MemChunk
 Chunks provide a linked list of dynamically allocated shared memory segments, with the most recently allocated chunk at the tail. More...
struct  MemContext
 MemContexts are large single chunks of shared memory from which smaller allocations may be made. More...
struct  Object
 General purpose object-type. More...
struct  ShmemCtl
 The ShmemCtl structure is the first object allocated from the first chunk of shared memory in context 0. More...
struct  Int4Var
 Subtype of Object for storing simple int4 values. More...
struct  Range
 Subtype of Object for storing range values. More...
struct  Bitmap
 Subtype of Object for storing bitmaps. More...
struct  BitmapRef
 Subtype of Object for storing bitmap refs. More...
struct  BitmapArray
 Subtype of Object for storing bitmap arrays. More...
struct  BitmapHash
 Subtype of Object for storing bitmap hashes. More...
struct  Int4Array
 Subtype of Object for storing arrays of integers. More...
struct  VarEntry
 A Veil variable. More...
struct  veil_variable_t
 Describes a veil shared or session variable. More...

Defines

#define VEIL_DATATYPES   1
 Prevent multiple definitions of the contents of this file.
#define CHUNK_SIZE   8192
 Chunks od shared memory are allocated in multiples of this size.
#define MAX_ALLOWED_SHMEM   CHUNK_SIZE * 100
 Limits the total amount of memory available for veil shared variables.
#define HASH_KEYLEN   60
 The key length for veil hash types.

Enumerations

enum  ObjType {
  OBJ_UNDEFINED = 0, OBJ_SHMEMCTL, OBJ_INT4, OBJ_RANGE,
  OBJ_BITMAP, OBJ_BITMAP_ARRAY, OBJ_BITMAP_HASH, OBJ_BITMAP_REF,
  OBJ_INT4_ARRAY, OBJ_UNDEFINED = 0, OBJ_SHMEMCTL, OBJ_INT4,
  OBJ_RANGE, OBJ_BITMAP, OBJ_BITMAP_ARRAY, OBJ_BITMAP_HASH,
  OBJ_BITMAP_REF, OBJ_INT4_ARRAY
}
 Describes the type of an Object record or one of its subtypes.


Generated on Mon Sep 12 15:26:59 2011 for Veil by  doxygen 1.5.6