event: move definition of spdk_event to internal
Change-Id: I63ab7fe99b76e810543cff5962a6d535b0ddb203 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
44ef085bed
commit
9d90154537
@ -86,13 +86,7 @@ typedef void (*spdk_event_fn)(void *arg1, void *arg2);
|
|||||||
/**
|
/**
|
||||||
* \brief An event is a function that is passed to and called on an lcore.
|
* \brief An event is a function that is passed to and called on an lcore.
|
||||||
*/
|
*/
|
||||||
struct spdk_event {
|
struct spdk_event;
|
||||||
uint32_t lcore;
|
|
||||||
spdk_event_fn fn;
|
|
||||||
void *arg1;
|
|
||||||
void *arg2;
|
|
||||||
struct spdk_event *next;
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef void (*spdk_poller_fn)(void *arg);
|
typedef void (*spdk_poller_fn)(void *arg);
|
||||||
|
|
||||||
|
@ -38,6 +38,14 @@
|
|||||||
|
|
||||||
#include "spdk/event.h"
|
#include "spdk/event.h"
|
||||||
|
|
||||||
|
struct spdk_event {
|
||||||
|
uint32_t lcore;
|
||||||
|
spdk_event_fn fn;
|
||||||
|
void *arg1;
|
||||||
|
void *arg2;
|
||||||
|
struct spdk_event *next;
|
||||||
|
};
|
||||||
|
|
||||||
int spdk_reactors_init(const char *mask, unsigned int max_delay_us);
|
int spdk_reactors_init(const char *mask, unsigned int max_delay_us);
|
||||||
int spdk_reactors_fini(void);
|
int spdk_reactors_fini(void);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user