Fix: power of 2 size check should apply to size_t type, not uint32_t
[lttng-ust.git] / libringbuffer / frontend.h
index 993a391730d7ab7a3518301a27fcd12711982d6b..ce79cdeed2d3f1ed24ff90576fd6281b99b1a260 100644 (file)
@@ -47,12 +47,13 @@ struct lttng_ust_shm_handle *channel_create(const struct lttng_ust_lib_ring_buff
                                void **priv_data,
                                size_t priv_data_align,
                                size_t priv_data_size,
+                               void *priv_data_init,
                                void *buf_addr,
                                size_t subbuf_size, size_t num_subbuf,
                                unsigned int switch_timer_interval,
                                unsigned int read_timer_interval,
-                               int *shm_fd, int *wait_fd,
-                               uint64_t *memory_map_size);
+                               int **shm_fd, int **wait_fd,
+                               uint64_t **memory_map_size);
 
 /* channel_handle_create - for consumer. */
 extern
@@ -88,8 +89,8 @@ extern struct lttng_ust_lib_ring_buffer *channel_get_ring_buffer(
                                const struct lttng_ust_lib_ring_buffer_config *config,
                                struct channel *chan, int cpu,
                                struct lttng_ust_shm_handle *handle,
-                               int *shm_fd, int *wait_fd,
-                               uint64_t *memory_map_size);
+                               int **shm_fd, int **wait_fd,
+                               uint64_t **memory_map_size);
 extern int lib_ring_buffer_open_read(struct lttng_ust_lib_ring_buffer *buf,
                                     struct lttng_ust_shm_handle *handle,
                                     int shadow);
This page took 0.025348 seconds and 4 git commands to generate.