1 /* SPDX-License-Identifier: BSD-3-Clause 2 * Copyright (C) 2016 Intel Corporation. 3 * All rights reserved. 4 */ 5 6 #ifndef SPDK_BDEV_AIO_H 7 #define SPDK_BDEV_AIO_H 8 9 #include "spdk/stdinc.h" 10 #include "spdk/bdev.h" 11 12 typedef void (*delete_aio_bdev_complete)(void *cb_arg, int bdeverrno); 13 14 int create_aio_bdev(const char *name, const char *filename, uint32_t block_size, bool readonly, 15 bool falloc, const struct spdk_uuid *uuid); 16 17 int bdev_aio_rescan(const char *name); 18 void bdev_aio_delete(const char *name, delete_aio_bdev_complete cb_fn, void *cb_arg); 19 20 #endif /* SPDK_BDEV_AIO_H */ 21