Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
049bcc6d
Commit
049bcc6d
authored
Dec 18, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
069766ae
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
17 deletions
+22
-17
bigfile/_bigfile.c
bigfile/_bigfile.c
+12
-6
bigfile/_bigfile.h
bigfile/_bigfile.h
+10
-11
No files found.
bigfile/_bigfile.c
View file @
049bcc6d
...
...
@@ -17,15 +17,21 @@
*
* See COPYING file for full licensing terms.
* See https://www.nexedi.com/licensing for rationale and options.
*/
/* Package _bigfile provides Python bindings to virtmem.
* See _bigfile.h for package overview. */
/* _bigfile organization
*
* NOTE on refcounting: who holds who
*
* ~~~~~~~~
*
* TODO big picture module description
* - what maps to what, briefly
* vma -> fileh -> file
* ^ |
* +---------+
* fileh->mmaps (kind of weak)
*
* VMA with a buffer/memoryview interface
* BigFileH with mmap (-> vma) and writeout control
* BigFile base class (to allow implementing BigFile backends in python)
*
* NOTE virtmem/bigfile functions release/reacquire GIL (see virt_lock()) -
* thus functions that use them cannot assume they run mutually exclusive to
...
...
bigfile/_bigfile.h
View file @
049bcc6d
...
...
@@ -22,7 +22,16 @@
* See https://www.nexedi.com/licensing for rationale and options.
*/
// XXX doc
/* Package _bigfile provides Python bindings to virtmem.
*
* - `BigFile` is base class that allows implementing BigFile backends in Python.
* Users can inherit from BigFile, implement loadblk/storeblk and this way
* provide access to data managed from Python to virtmem subsystem.
* - `BigFileH` represents virtmem file handle for opened BigFile.
* It can be mmap'ed and provides writeout control.
* - `VMA` represents mmap'ed part of a BigFileH.
* It provides buffer/memoryview interface for data access.
*/
#include <Python.h>
#include <wendelin/bigfile/file.h>
...
...
@@ -105,16 +114,6 @@ struct PyBigFile {
typedef
struct
PyBigFile
PyBigFile
;
/* NOTE on refcounting: who holds who
*
*
* vma -> fileh -> file
* ^ |
* +---------+
* fileh->mmaps (kind of weak)
*/
#ifdef __cplusplus
}
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment