From 23db0b85fd2f5b83128a656d5a6837374b2bf33e Mon Sep 17 00:00:00 2001 From: Yanbo Zhou Date: Mon, 25 Dec 2017 14:55:53 +0800 Subject: [PATCH] include/fd.h: add comments for pubclic APIs Change-Id: I3a23e6c6b640428260ebf300ded9b8cdac501ef4 Signed-off-by: Yanbo Zhou Reviewed-on: https://review.gerrithub.io/392917 Tested-by: SPDK Automated Test System Reviewed-by: Paul Luse Reviewed-by: Jim Harris Reviewed-by: Daniel Verkamp Reviewed-by: GangCao --- include/spdk/fd.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/include/spdk/fd.h b/include/spdk/fd.h index 8fec287e2..8da7f2cd7 100644 --- a/include/spdk/fd.h +++ b/include/spdk/fd.h @@ -44,7 +44,22 @@ extern "C" { #endif +/** + * Get the file size. + * + * \param fd File descriptor. + * + * \return File size. + */ uint64_t spdk_fd_get_size(int fd); + +/** + * Get the block size of the file. + * + * \param fd File descriptor. + * + * \return Block size. + */ uint32_t spdk_fd_get_blocklen(int fd); #ifdef __cplusplus