1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright (C) 2019 Intel Corporation. 3 * All rights reserved. 4 */ 5 6 #ifndef SPDK_BDEV_URING_H 7 #define SPDK_BDEV_URING_H 8 9 #include "spdk/stdinc.h" 10 11 #include "spdk/queue.h" 12 #include "spdk/bdev.h" 13 14 #include "spdk/bdev_module.h" 15 16 typedef void (*spdk_delete_uring_complete)(void *cb_arg, int bdeverrno); 17 18 struct bdev_uring_opts { 19 const char *name; 20 const char *filename; 21 uint32_t block_size; 22 struct spdk_uuid uuid; 23 }; 24 25 struct spdk_bdev *create_uring_bdev(const struct bdev_uring_opts *opts); 26 27 void delete_uring_bdev(const char *name, spdk_delete_uring_complete cb_fn, void *cb_arg); 28 29 int bdev_uring_rescan(const char *name); 30 31 #endif /* SPDK_BDEV_URING_H */ 32