chunk_freelist_t Struct Reference


Data Fields

size_t alloc_size
int max_length
int slack
int cur_length
int lowest_length
uint64_t n_alloc
uint64_t n_free
uint64_t n_hit
chunk_thead

Detailed Description

A freelist of chunks.

Field Documentation

What size chunks does this freelist hold?

Referenced by assert_freelist_ok(), buf_dump_freelist_sizes(), buf_shrink_freelists(), and get_freelist().

Never allow more than this number of chunks in the freelist.

Referenced by chunk_free_unchecked().

When trimming the freelist, leave this number of extra chunks beyond lowest_length.

Referenced by buf_shrink_freelists().

How many chunks on the freelist now?

Referenced by assert_freelist_ok(), buf_shrink_freelists(), chunk_free_unchecked(), and chunk_new_with_alloc_size().

What's the smallest value of cur_length since the last time we cleaned this freelist?

Referenced by assert_freelist_ok(), buf_shrink_freelists(), and chunk_new_with_alloc_size().


The documentation for this struct was generated from the following file:

Generated on Tue May 25 00:31:07 2010 for tor by  doxygen 1.5.6