2022-06-03 19:15:11 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2022-11-01 20:26:26 +00:00
|
|
|
* Copyright (C) 2016 Intel Corporation.
|
2016-08-03 17:36:14 +00:00
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
2017-07-13 04:08:53 +00:00
|
|
|
#ifndef SPDK_BDEV_AIO_H
|
|
|
|
#define SPDK_BDEV_AIO_H
|
2016-08-03 17:36:14 +00:00
|
|
|
|
2017-05-02 18:18:25 +00:00
|
|
|
#include "spdk/stdinc.h"
|
2016-08-03 17:36:14 +00:00
|
|
|
#include "spdk/bdev.h"
|
|
|
|
|
2019-02-28 23:14:33 +00:00
|
|
|
typedef void (*delete_aio_bdev_complete)(void *cb_arg, int bdeverrno);
|
2018-07-25 17:56:43 +00:00
|
|
|
|
2022-10-11 10:15:36 +00:00
|
|
|
int create_aio_bdev(const char *name, const char *filename, uint32_t block_size, bool readonly);
|
2016-08-03 17:36:14 +00:00
|
|
|
|
2022-03-29 07:23:40 +00:00
|
|
|
int bdev_aio_rescan(const char *name);
|
2022-03-29 05:55:53 +00:00
|
|
|
void bdev_aio_delete(const char *name, delete_aio_bdev_complete cb_fn, void *cb_arg);
|
2018-06-14 14:15:36 +00:00
|
|
|
|
2018-10-29 02:45:42 +00:00
|
|
|
#endif /* SPDK_BDEV_AIO_H */
|