xref: /spdk/module/bdev/aio/bdev_aio.h (revision e5693d682a9872b3bb3a84b3245a099af77992d6)
1488570ebSJim Harris /*   SPDX-License-Identifier: BSD-3-Clause
2a6dbe372Spaul luse  *   Copyright (C) 2016 Intel Corporation.
307fe6a43SSeth Howell  *   All rights reserved.
407fe6a43SSeth Howell  */
507fe6a43SSeth Howell 
607fe6a43SSeth Howell #ifndef SPDK_BDEV_AIO_H
707fe6a43SSeth Howell #define SPDK_BDEV_AIO_H
807fe6a43SSeth Howell 
907fe6a43SSeth Howell #include "spdk/stdinc.h"
1007fe6a43SSeth Howell #include "spdk/bdev.h"
1107fe6a43SSeth Howell 
1207fe6a43SSeth Howell typedef void (*delete_aio_bdev_complete)(void *cb_arg, int bdeverrno);
1307fe6a43SSeth Howell 
14648a5414Szhenwei pi int create_aio_bdev(const char *name, const char *filename, uint32_t block_size, bool readonly,
15*e5693d68SMateusz Kozlowski 		    bool falloc, const struct spdk_uuid *uuid);
1607fe6a43SSeth Howell 
17d77d3179SShuhei Matsumoto int bdev_aio_rescan(const char *name);
184573e4ccSShuhei Matsumoto void bdev_aio_delete(const char *name, delete_aio_bdev_complete cb_fn, void *cb_arg);
1907fe6a43SSeth Howell 
2007fe6a43SSeth Howell #endif /* SPDK_BDEV_AIO_H */
21