home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Writing Apache Modules with Perl and C
By:   Lincoln Stein and Doug MacEachern
Published:   O'Reilly & Associates, Inc.  - March 1999

Copyright © 1999 by O'Reilly & Associates, Inc.


 


   Show Contents   Previous Page   Next Page

Chapter 10 - C API Reference Guide, Part I / Memory Management and Resource Pools
Getting Information About Pools

Although these functions are hardly ever needed, they are included here for the sake of completeness.

pool *ap_find_pool(const void *block)

Given a memory block, this function will return a pointer to the resource pool that it belongs to. The function will return unpredictable results if you pass it a pointer that was not allocated with the pool API.

int ap_pool_is_ancestor (pool *a, pool *b);

This function returns a true value if pool b is a subpool that was originally allocated from pool a.

   Show Contents   Previous Page   Next Page
Copyright © 1999 by O'Reilly & Associates, Inc.