1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright (c) Intel Corporation. 3 * All rights reserved. 4 */ 5 6 #ifndef SPDK_BDEV_FTL_H 7 #define SPDK_BDEV_FTL_H 8 9 #include "spdk/stdinc.h" 10 #include "spdk/bdev_module.h" 11 #include "spdk/ftl.h" 12 13 #include "ftl_core.h" 14 15 struct ftl_bdev_info { 16 const char *name; 17 struct spdk_uuid uuid; 18 }; 19 20 typedef void (*ftl_bdev_init_fn)(const struct ftl_bdev_info *, void *, int); 21 typedef void (*ftl_bdev_thread_fn)(void *); 22 23 int bdev_ftl_create_bdev(const struct spdk_ftl_conf *conf, ftl_bdev_init_fn cb, void *cb_arg); 24 void bdev_ftl_delete_bdev(const char *name, bool fast_shutdown, spdk_bdev_unregister_cb cb_fn, 25 void *cb_arg); 26 int bdev_ftl_defer_init(const struct spdk_ftl_conf *conf); 27 28 #endif /* SPDK_BDEV_FTL_H */ 29