]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ipc/mem/Page.h
6 #ifndef SQUID_IPC_MEM_PAGE_H
7 #define SQUID_IPC_MEM_PAGE_H
19 /// Shared memory page identifier, address, or handler
23 PageId(): pool(0), number(0), purpose(maxPurpose
) {}
25 operator bool() const { return pool
&& number
; }
27 uint32_t pool
; ///< page pool ID within Squid
28 // uint32_t segment; ///< memory segment ID within the pool; unused for now
29 uint32_t number
; ///< page number within the segment
31 enum Purpose
{ cachePage
, ioPage
, maxPurpose
};
32 Purpose purpose
; ///< page purpose
35 /// writes page address (e.g., "sh_page5.3"), for debugging
36 std::ostream
&operator <<(std::ostream
&os
, const PageId
&page
);
42 #endif // SQUID_IPC_MEM_PAGE_H