X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=libustctl%2Fustctl.c;h=735e63cb6f7d2cb58f182585b07620b087df8457;hb=9095efe93996c4ba9b758e8e2d706e8e2ae4b699;hp=abe6d034bb4211f7941da8dcec40cb4a56325cbc;hpb=6e922b240977010b0f257d22c379df95cf1a6fb9;p=ust.git diff --git a/libustctl/ustctl.c b/libustctl/ustctl.c index abe6d03..735e63c 100644 --- 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 */ +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,