projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add get mmap base
[ust.git]
/
libustctl
/
ustctl.c
diff --git
a/libustctl/ustctl.c
b/libustctl/ustctl.c
index abe6d034bb4211f7941da8dcec40cb4a56325cbc..735e63cb6f7d2cb58f182585b07620b087df8457 100644
(file)
--- a/
libustctl/ustctl.c
+++ b/
libustctl/ustctl.c
@@
-479,6
+479,12
@@
void ustctl_close_stream_read(struct shm_handle *handle,
/* For mmap mode, readable without "get" operation */
/* For mmap mode, readable without "get" operation */
+void *ustctl_get_mmap_base(struct shm_handle *handle,
+ struct lib_ring_buffer *buf)
+{
+ return shmp(handle, buf->backend.memory_map);
+}
+
/* returns the length to mmap. */
int ustctl_get_mmap_len(struct shm_handle *handle,
struct lib_ring_buffer *buf,
/* returns the length to mmap. */
int ustctl_get_mmap_len(struct shm_handle *handle,
struct lib_ring_buffer *buf,
This page took
0.022309 seconds
and
4
git commands to generate.