2021-03-27 | Paul Boddie | file changeset files shortlog | Introduced a preallocated memory object alongside the existing incremental allocation object (which has been renamed), both employing a common interface, thus permitting the use of a generic page collection with different page queue types to support both files and pipes. Changed the pipe paging to employ just two pipe regions in order to limit the amount of memory that would be used by each pipe. |
paul@0 | 1 | #pragma once |
paul@0 | 2 | |
paul@0 | 3 | #include "types.h" |
paul@0 | 4 | |
paul@0 | 5 | /* A "send" flexpage abstraction. */ |
paul@0 | 6 | |
paul@0 | 7 | class SendFlexpage |
paul@0 | 8 | { |
paul@0 | 9 | public: |
paul@0 | 10 | offset_t base_addr; |
paul@0 | 11 | unsigned int order; |
paul@54 | 12 | flags_t flags; |
paul@0 | 13 | |
paul@11 | 14 | explicit SendFlexpage(offset_t base_addr, unsigned int order, |
paul@54 | 15 | flags_t flags) |
paul@11 | 16 | : base_addr(base_addr), order(order), flags(flags) |
paul@0 | 17 | { |
paul@0 | 18 | } |
paul@0 | 19 | }; |
paul@0 | 20 | |
paul@0 | 21 | // vim: tabstop=4 expandtab shiftwidth=4 |