2021-02-23 | Paul Boddie | raw annotate files changeset graph | Reordered capability freeing and dataspace detachment to avoid apparent issues with regions appearing at previously used addresses. Another required measure seems to involve the use of l4re_rm_detach_unmap in libipc when detaching dataspaces. |
1 #pragma once 2 3 #include "accessor.h" 4 5 /* A file accessor, providing flexpages corresponding to file regions. */ 6 7 class TestFileAccessor : public Accessor 8 { 9 public: 10 explicit TestFileAccessor(fileid_t fileid, offset_t size=0); 11 12 /* Data transfer methods. */ 13 14 virtual void fill(Flexpage *flexpage); 15 16 virtual void flush(Flexpage *flexpage); 17 }; 18 19 // vim: tabstop=4 expandtab shiftwidth=4