Back to index

plt-scheme  4.2.1
Functions
protect_range.c File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static void initialize_protect_page_ranges (Page_Range *protect_range, void *block, unsigned long size)
static void flush_protect_page_ranges (Page_Range *protect_range, int writeable)
static void add_protect_page_range (Page_Range *protect_range, void *_start, unsigned long len, unsigned long alignment, int writeable)

Function Documentation

static void add_protect_page_range ( Page_Range protect_range,
void _start,
unsigned long  len,
unsigned long  alignment,
int  writeable 
) [static]

Definition at line 37 of file protect_range.c.

{
  if (!add_page_range(protect_range, _start, len, alignment)) {
    flush_protect_page_ranges(protect_range, writeable);
    add_page_range(protect_range, _start, len, alignment);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void flush_protect_page_ranges ( Page_Range protect_range,
int  writeable 
) [static]

Definition at line 24 of file protect_range.c.

{
  Range *work;

  compact_page_ranges(protect_range);

  for (work = protect_range->range_start; work; work = work->next) {
    vm_protect_pages((void *)work->start, work->len, writeable);
  }

  reset_page_ranges(protect_range);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void initialize_protect_page_ranges ( Page_Range protect_range,
void block,
unsigned long  size 
) [static]

Definition at line 19 of file protect_range.c.

{
  initialize_page_ranges(protect_range, block, size);
}

Here is the call graph for this function:

Here is the caller graph for this function: