struct apr_mmap_t

Overview

As far as I can tell the only really sane way to store an MMAP is as a void * and a length. More…

#include <apr_mmap.h>

struct apr_mmap_t {
    // fields

    apr_pool_t* cntxt;
    void* mm;
    apr_size_t size;

    // methods

    APR_RING_ENTRY(apr_mmap_t);
};

Detailed Documentation

As far as I can tell the only really sane way to store an MMAP is as a void * and a length. BeOS requires this area_id, but that’s just a little something extra. I am exposing this type, because it doesn’t make much sense to keep it private, and opening it up makes some stuff easier in Apache.The MMAP structure

Fields

apr_pool_t* cntxt

The pool the mmap structure was allocated out of.

void* mm

The start of the memory mapped area

apr_size_t size

The amount of data in the mmap

Methods

APR_RING_ENTRY(apr_mmap_t)

ring of apr_mmap_t ‘s that reference the same mmap’ed region; acts in place of a reference count