Spdk/lib/event
Shuhei Matsumoto cd83ea4a6d thread: Add SPDK internal APIs spdk_thread_get_first/next_active/timed/paused_poller()
The following patches will introduce red black tree to manage
timed pollers efficiently but it will be based on macros available only
in lib/thread/thread.c. Hence then it will be difficult to expose the
internal of timed pollers tree outside the file. On the other hand,
we do not want to include JSON into the file.

Hence add a few SPDK internal APIs to iterate pollers list transparently.

For spdk_thread_get_next_active/timed/pause_poller(), we omit the parameter
thread and get it internally from poller->thread even if the names include
the term "thread". This will be slightly cleaner.

Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Change-Id: I000801a2e4dc42fa79801a2fd6f2b06e1b769c88
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7717
Community-CI: Broadcom CI
Community-CI: Mellanox Build Bot
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
2021-05-13 10:03:44 +00:00
..
app_rpc.c thread: Add SPDK internal APIs spdk_thread_get_first/next_active/timed/paused_poller() 2021-05-13 10:03:44 +00:00
app.c event: Add return code to spdk_rpc_initialize 2021-03-12 08:38:10 +00:00
dpdk_governor.c dpdk_governor: refactor _get_core_curr_freqs 2021-04-22 15:40:30 +00:00
gscheduler.c event: Fix SPDK_SCHEDULER_REGISTER macro 2021-01-15 08:28:30 +00:00
json_config.c event: Add return code to spdk_rpc_initialize 2021-03-12 08:38:10 +00:00
log_rpc.c log_rpc: Unify codes in end path. 2021-05-05 13:26:06 +00:00
Makefile so_ver: increase all major versions 2021-02-05 14:43:47 +00:00
reactor.c reactor: call callback if no need to set intr 2021-04-26 06:58:36 +00:00
rpc.c event: Add return code to spdk_rpc_initialize 2021-03-12 08:38:10 +00:00
scheduler_dynamic.c scheduler: Move busy thread if its mask do not match current lcore 2021-01-25 20:37:50 +00:00
scheduler_static.c event: Fix SPDK_SCHEDULER_REGISTER macro 2021-01-15 08:28:30 +00:00
spdk_event.map reactor: add spdk_reactor_set_interrupt_mode func 2021-01-25 20:37:50 +00:00
subsystem_rpc.c event: move app_rpc contents 2020-09-25 11:43:42 +00:00
subsystem.c event: remove subsystem legacy config print 2020-10-21 02:25:45 +00:00