]>
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
17 /// Shared memory page identifier, address, or handler
20 PageId(): pool(0), number(0), purpose(maxPurpose
) {}
22 operator bool() const { return pool
&& number
; }
24 uint32_t pool
; ///< page pool ID within Squid
25 // uint32_t segment; ///< memory segment ID within the pool; unused for now
26 uint32_t number
; ///< page number within the segment
28 enum Purpose
{ cachePage
, ioPage
, maxPurpose
};
29 Purpose purpose
; ///< page purpose
32 /// writes page address (e.g., "sh_page5.3"), for debugging
33 std::ostream
&operator <<(std::ostream
&os
, const PageId
&page
);
39 #endif // SQUID_IPC_MEM_PAGE_H