fd_group: fix spdk_fd_group_wait ret val description

For any processed events, the function actually returns the number of them, not 0.

Signed-off-by: Maciej Szulik <maciej.szulik@intel.com>
Change-Id: I37bb456925e0b02c51276af169107e609d2bf301
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10229
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Jacek Kalwas <jacek.kalwas@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Maciej Szulik 2021-11-15 09:07:01 -05:00 committed by Tomasz Zawadzki
parent 0887b1ea6a
commit eaee60c1ba

View File

@ -89,7 +89,7 @@ void spdk_fd_group_destroy(struct spdk_fd_group *fgrp);
* \param timeout Specifies the number of milliseconds that will block.
* -1 causes indefinitedly blocking; 0 causes immediately return.
*
* \return 0 if any events get processed
* \return the number of processed events
* or -errno if failed
*/
int spdk_fd_group_wait(struct spdk_fd_group *fgrp, int timeout);