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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
4c142f02
Commit
4c142f02
authored
Jul 09, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
c7062e4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
5 deletions
+16
-5
include/wendelin/bigfile/file.h
include/wendelin/bigfile/file.h
+16
-5
No files found.
include/wendelin/bigfile/file.h
View file @
4c142f02
...
...
@@ -49,17 +49,28 @@ typedef struct BigFile BigFile;
/* bigfile_ops defines interface that BigFile implementations must provide. */
struct
bigfile_ops
{
/* load/store file block to/from memory.
* NOTE len(buf) must be = file->blksize
/* loadblk is called to load file block into memory.
*
* NOTE loadblk is called from SIGSEGV signal handler context.
*
* len(buf) must be = file->blksize.
* @return 0 - ok !0 - fail
*/
// XXX loadblk - called from SIGSEGV context;
// storeblk - called from usual context
int
(
*
loadblk
)
(
BigFile
*
file
,
blk_t
blk
,
void
*
buf
);
/* storeblk is called to store file block from memory.
*
* NOTE contrary to loadblk, storeblk is called from regular context.
*
* len(buf) must be = file->blksize.
* @return 0 - ok !0 - fail
*/
int
(
*
storeblk
)
(
BigFile
*
file
,
blk_t
blk
,
const
void
*
buf
);
/* release file */
/* release is called to release resources associated with file.
*
* The file is not otherwise used at the time of and past release call.
*/
void
(
*
release
)
(
BigFile
*
file
);
};
...
...
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