Spdk/lib/util
Thanos Makatos 7f23638550 util: add function spdk_fd_group_get_epoll_event
This patch introduces function spdk_fd_group_get_epoll_event, which
returns the epoll(7) event that caused the file descriptor group
callback function to execute. Rather than changing the signature of
spdk_fd_fn in order to pass the struct epoll_event, which would result
in a gigantic patch where there vast majority of users would simply have
to ignore the new argument, we introduce this new API that allows to
return the epoll_event only when really needed.

Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Suggested-by: John Levon <john.levon@nutanix.com>
Change-Id: I3debe1382d1c2bfec6ae4fea274ee38ed0b135fe
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14935
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: John Levon <levon@movementarian.org>
2022-11-22 10:01:43 +00:00
..
base64_neon.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
base64_sve.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
base64.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
bit_array.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
cpuset.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
crc16.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
crc32_ieee.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
crc32.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
crc32c.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
dif.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
fd_group.c util: add function spdk_fd_group_get_epoll_event 2022-11-22 10:01:43 +00:00
fd.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
file.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
hexlify.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
iov.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
Makefile lib/util: add strarray utility functions 2022-11-15 08:31:02 +00:00
math.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
pipe.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
spdk_util.map util: add function spdk_fd_group_get_epoll_event 2022-11-22 10:01:43 +00:00
strerror_tls.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
string.c lib/util: add strarray utility functions 2022-11-15 08:31:02 +00:00
util_internal.h update Intel copyright notices 2022-11-10 08:28:53 +00:00
uuid.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
xor.c update Intel copyright notices 2022-11-10 08:28:53 +00:00
zipf.c update Intel copyright notices 2022-11-10 08:28:53 +00:00