Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
codes
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
38
Issues
38
List
Boards
Labels
Milestones
Merge Requests
8
Merge Requests
8
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
codes
codes
Commits
53edc7d4
Commit
53edc7d4
authored
Nov 04, 2014
by
Jonathan Jenkins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lsm comments, minor cleanup
parent
fb1bf000
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
3 deletions
+26
-3
codes/local-storage-model.h
codes/local-storage-model.h
+26
-3
No files found.
codes/local-storage-model.h
View file @
53edc7d4
...
...
@@ -26,10 +26,25 @@ typedef enum lsm_event_e
/*
* Prototypes
*/
void
lsm_event_new_reverse
(
tw_lp
*
sender
);
/* given LP sender, find the LSM device LP in the same group */
tw_lpid
lsm_find_local_device
(
tw_lp
*
sender
);
/*
* lsm_event_new
* - creates a new event that is targeted for the corresponding
* LSM LP.
* - this event will allow wrapping the callers completion event
* - category: string name to identify the traffic category
* - dest_gid: the gid to send the callers event to
* - gid_offset: relative offset of the LSM LP to the originating LP
* - io_object: id of byte stream the caller will modify
* - io_offset: offset into byte stream
* - io_size_bytes: size in bytes of IO request
* - io_type: read or write request
* - message_bytes: size of the event message the caller will have
* - sender: id of the sender
*/
tw_event
*
lsm_event_new
(
const
char
*
category
,
tw_lpid
dest_gid
,
uint64_t
io_object
,
...
...
@@ -40,12 +55,20 @@ tw_event* lsm_event_new(const char* category,
tw_lp
*
sender
,
tw_stime
delay
);
void
lsm_event_new_reverse
(
tw_lp
*
sender
);
/*
* lsm_event_data
* - returns the pointer to the message data for the callers data
* - event: a lsm_event_t event
*/
void
*
lsm_event_data
(
tw_event
*
event
);
/* registers the storage model LP with CODES/ROSS */
void
lsm_register
(
void
);
void
lsm_configure
(
void
);
void
lsm_send_init
(
tw_lpid
gid
,
tw_lp
*
lp
,
char
*
name
);
/* configures the LSM model(s) */
void
lsm_configure
(
void
);
/*
* Macros
...
...
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