Commit 6ada59d3 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 72eb63d0
......@@ -77,15 +77,11 @@ struct bigfile_ops {
* @addr NULL - mmap at anywhere, !NULL - mmap exactly at addr.
* @return !NULL - mapped there, NULL - error.
*/
void*(*mmap_read) (BigFile *file, void *addr, blk_t blk, size_t blklen);
void* (*mmap_read) (BigFile *file, void *addr, blk_t blk, size_t blklen);
// - mmap_setup(vma) setup initial mmap
// - mresync(vma) resync mmap to updated DB view; forget RW
// - munmap(vma) before VMA is unmapped
// /* notify_munmap XXX
// */
// void (*notify_munmap) (BigFile *file
// - mmap_read(vma) setup initial read-only mmap
// - mresync(vma, was_dirtyv) forget RW dirty pages -> mmap them back read-only to file data
// - munmap(vma) before VMA is unmapped
/* release is called to release resources associated with file.
......
......@@ -2,7 +2,7 @@
#define _WENDELIN_BIGFILE_VIRTMEM_H_
/* Wendelin.bigfile | Virtual memory
* Copyright (C) 2014-2015 Nexedi SA and Contributors.
* Copyright (C) 2014-2019 Nexedi SA and Contributors.
* Kirill Smelkov <kirr@nexedi.com>
*
* This program is free software: you can Use, Study, Modify and Redistribute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment