Coda Distributed File System
rvm_segment_private.h
Go to the documentation of this file.
1/* BLURB lgpl
2
3 Coda File System
4 Release 5
5
6 Copyright (c) 1987-1999 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU Library General Public Licence Version 2, as
11shown in the file LICENSE. The technical and financial contributors to
12Coda are listed in the file CREDITS.
13
14 Additional copyrights
15 none currently
16
17#*/
18
19/* segment loader private declarations */
20
21#ifndef _RVM_SEGMENT_PRIVATE_H_
22#define _RVM_SEGMENT_PRIVATE_H_
23/* Worker definitions */
24
27
28extern int overlap();
29
30/* Macro definitions for the segment header */
31
32/* The follwing version string must be changed if any change is made in
33 the segment header (rvm_segment_hdr_t)
34*/
35#define RVM_SEGMENT_VERSION "RVM Segment Loader Release 0.1 15 Nov. 1990"
36
37/* Moved this to rvm_segment.h, as rdsinit needs it. */
38/* #define RVM_SEGMENT_HDR_SIZE RVM_PAGE_SIZE * length of segment header */
39#define RVM_MAX_REGIONS /* maximum regions in seg hdr */ \
40 ((RVM_SEGMENT_HDR_SIZE / sizeof(rvm_region_def_t)) - 1)
41
42typedef enum
43{
46
47/* segment header: rvm_segment_hdr_t */
48typedef struct {
49 rvm_seg_struct_id_t struct_id; /* self-identifier, do not change */
50
51 char version[RVM_VERSION_MAX]; /* version string */
52 rvm_length_t nregions; /* number of regions defined */
53 rvm_region_def_t regions[1]; /* region definition array -- length
54 actually determined by
55 RVM_MAX_REGIONS */
57
58#endif /* _RVM_SEGMENT_PRIVATE_H_ */
int rvm_return_t
Definition: rvm.h:94
#define RVM_VERSION_MAX
Definition: rvm.h:32
unsigned long rvm_length_t
Definition: rvm.h:140
rvm_return_t allocate_vm()
rvm_return_t deallocate_vm()
int overlap()
rvm_seg_struct_id_t
Definition: rvm_segment_private.h:43
@ rvm_segment_hdr_id
Definition: rvm_segment_private.h:44
Definition: rvm_segment.h:32
Definition: rvm_segment_private.h:48
rvm_seg_struct_id_t struct_id
Definition: rvm_segment_private.h:49
rvm_length_t nregions
Definition: rvm_segment_private.h:52