io_channel: Rename io_channel_create_cb_t to spdk_io_channel_create_cb

Add spdk, remove _t

Change-Id: Ic05b405439020b5ec5f2098ab04d37a4dd3cb5b6
Signed-off-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-on: https://review.gerrithub.io/362254
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Ben Walker 2017-05-23 11:22:59 -07:00 committed by Jim Harris
parent 7fb3b2484c
commit 666bf939f1
2 changed files with 9 additions and 9 deletions

View File

@ -49,8 +49,8 @@ typedef void (*spdk_thread_fn)(void *ctx);
typedef void (*spdk_thread_pass_msg)(spdk_thread_fn fn, void *ctx, typedef void (*spdk_thread_pass_msg)(spdk_thread_fn fn, void *ctx,
void *thread_ctx); void *thread_ctx);
typedef int (*io_channel_create_cb_t)(void *io_device, void *ctx_buf); typedef int (*spdk_io_channel_create_cb)(void *io_device, void *ctx_buf);
typedef void (*io_channel_destroy_cb_t)(void *io_device, void *ctx_buf); typedef void (*spdk_io_channel_destroy_cb)(void *io_device, void *ctx_buf);
/** /**
* \brief Initializes the calling thread for I/O channel allocation. * \brief Initializes the calling thread for I/O channel allocation.
@ -98,8 +98,8 @@ void spdk_thread_send_msg(const struct spdk_thread *thread, spdk_thread_fn fn, v
* is the size of the context buffer allocated to store references to allocated I/O * is the size of the context buffer allocated to store references to allocated I/O
* channel resources. * channel resources.
*/ */
void spdk_io_device_register(void *io_device, io_channel_create_cb_t create_cb, void spdk_io_device_register(void *io_device, spdk_io_channel_create_cb create_cb,
io_channel_destroy_cb_t destroy_cb, uint32_t ctx_size); spdk_io_channel_destroy_cb destroy_cb, uint32_t ctx_size);
/** /**
* \brief Unregister the opaque io_device context as an I/O device. * \brief Unregister the opaque io_device context as an I/O device.

View File

@ -40,8 +40,8 @@ static pthread_mutex_t g_devlist_mutex = PTHREAD_MUTEX_INITIALIZER;
struct io_device { struct io_device {
void *io_device_ctx; void *io_device_ctx;
io_channel_create_cb_t create_cb; spdk_io_channel_create_cb create_cb;
io_channel_destroy_cb_t destroy_cb; spdk_io_channel_destroy_cb destroy_cb;
uint32_t ctx_size; uint32_t ctx_size;
TAILQ_ENTRY(io_device) tailq; TAILQ_ENTRY(io_device) tailq;
}; };
@ -53,7 +53,7 @@ struct spdk_io_channel {
void *io_device; void *io_device;
uint32_t ref; uint32_t ref;
TAILQ_ENTRY(spdk_io_channel) tailq; TAILQ_ENTRY(spdk_io_channel) tailq;
io_channel_destroy_cb_t destroy_cb; spdk_io_channel_destroy_cb destroy_cb;
/* /*
* Modules will allocate extra memory off the end of this structure * Modules will allocate extra memory off the end of this structure
@ -99,8 +99,8 @@ spdk_thread_send_msg(const struct spdk_thread *thread, spdk_thread_fn fn, void *
} }
void void
spdk_io_device_register(void *io_device, io_channel_create_cb_t create_cb, spdk_io_device_register(void *io_device, spdk_io_channel_create_cb create_cb,
io_channel_destroy_cb_t destroy_cb, uint32_t ctx_size) spdk_io_channel_destroy_cb destroy_cb, uint32_t ctx_size)
{ {
struct io_device *dev, *tmp; struct io_device *dev, *tmp;