9#ifndef SQUID_SRC_IPC_MEM_PAGES_H
10#define SQUID_SRC_IPC_MEM_PAGES_H
size_t PageLevel()
approximate total number of shared memory pages used now
bool GetPage(const PageId::Purpose purpose, PageId &page)
sets page ID and returns true unless no free pages are found
size_t PagesAvailable()
approximate total number of shared memory pages we can allocate now
size_t PageSize()
returns page size in bytes; all pages are assumed to be the same size
void NotePageNeed(const int purpose, const int count)
claim the need for a number of pages for a given purpose
void PutPage(PageId &page)
makes identified page available as a free page to future GetPage() callers
char * PagePointer(const PageId &page)
converts page handler into a temporary writeable shared memory pointer
size_t PageLimit()
the total number of shared memory pages that can be in use at any time