Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bake
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
7
Issues
7
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sds
bake
Commits
2a91f6f7
Commit
2a91f6f7
authored
May 11, 2016
by
Philip Carns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stub for read function
parent
76558b82
Pipeline
#375
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
+32
-0
include/bake-bulk.h
include/bake-bulk.h
+20
-0
src/bake-bulk.c
src/bake-bulk.c
+12
-0
No files found.
include/bake-bulk.h
View file @
2a91f6f7
...
...
@@ -87,6 +87,26 @@ int bake_bulk_write(
int
bake_bulk_persist
(
bake_target_id_t
bti
,
bake_bulk_region_id_t
rid
);
/**
* Reads from a region that was previously persisted with bake_bulk_persist().
*
* NOTE: for now at least, this call does not support "short" reads. It
* either succeeds in reading the requested size or not.
*
* @param [in] bti BAKE target identifier
* @param [in] rid region identifier
* @param [in] region_offset offset into the target region to read from
* @param [in] buf local memory buffer read into
* @param [in] buf_size size of local memory buffer to read into
* @returns 0 on success, -1 on failure
*/
int
bake_bulk_read
(
bake_target_id_t
bti
,
bake_bulk_region_id_t
rid
,
uint64_t
region_offset
,
void
*
buf
,
uint64_t
buf_size
);
/**
* Release local resources associated with access to a target; does not
...
...
src/bake-bulk.c
View file @
2a91f6f7
...
...
@@ -284,3 +284,15 @@ int bake_bulk_persist(
HG_Destroy
(
handle
);
return
(
ret
);
}
int
bake_bulk_read
(
bake_target_id_t
bti
,
bake_bulk_region_id_t
rid
,
uint64_t
region_offset
,
void
*
buf
,
uint64_t
buf_size
)
{
return
(
-
1
);
}
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