X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Ffd-handle.c;h=b2b7efd2369dae22ba3c62d4c32fa5e071713408;hp=510e1181bd1193435a06b158e737d54c9051d53f;hb=ca806b0b247f89c62ac628a7779ae84049a8c2d7;hpb=a4705d55c62276cb913c64832f383e27aa72668b diff --git a/src/common/fd-handle.c b/src/common/fd-handle.c index 510e1181b..b2b7efd23 100644 --- a/src/common/fd-handle.c +++ b/src/common/fd-handle.c @@ -31,7 +31,6 @@ static void fd_handle_release(struct urcu_ref *ref) free(handle); } -LTTNG_HIDDEN struct fd_handle *fd_handle_create(int fd) { struct fd_handle *handle = NULL; @@ -55,7 +54,6 @@ end: return handle; } -LTTNG_HIDDEN void fd_handle_get(struct fd_handle *handle) { if (!handle) { @@ -65,7 +63,6 @@ void fd_handle_get(struct fd_handle *handle) urcu_ref_get(&handle->ref); } -LTTNG_HIDDEN void fd_handle_put(struct fd_handle *handle) { if (!handle) { @@ -75,14 +72,12 @@ void fd_handle_put(struct fd_handle *handle) urcu_ref_put(&handle->ref, fd_handle_release); } -LTTNG_HIDDEN int fd_handle_get_fd(struct fd_handle *handle) { LTTNG_ASSERT(handle); return handle->fd; } -LTTNG_HIDDEN struct fd_handle *fd_handle_copy(const struct fd_handle *handle) { struct fd_handle *new_handle = NULL;