Callback Data Allocator Internals
[Callback Data Allocator API]

Collaboration diagram for Callback Data Allocator Internals:

Classes

class  cbdata
struct  CBDataIndex

Defines

#define OFFSET_OF(TYPE, MEMBER)   ((size_t) &(((TYPE) *)0)->(MEMBER))

Variables

struct CBDataIndexcbdata_index
int cbdata_types = 0

Detailed Description

These routines manage a set of registered callback data pointers. One of the easiest ways to make Squid coredump is to issue a callback to for some data structure which has previously been freed. With these routines, we register (add) callback data pointers, lock them just before registering the callback function, validate them before issuing the callback, and then free them when finished.


Define Documentation

#define OFFSET_OF ( TYPE,
MEMBER   )     ((size_t) &(((TYPE) *)0)->(MEMBER))

Definition at line 84 of file cbdata.cc.


Variable Documentation

int cbdata_types = 0

Definition at line 188 of file cbdata.cc.

Search

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors