2022-06-03 19:15:11 +00:00
|
|
|
/* SPDX-License-Identifier: BSD-3-Clause
|
2019-09-23 09:34:58 +00:00
|
|
|
* Copyright (c) Intel Corporation.
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SPDK_BDEV_INTERNAL_H
|
|
|
|
#define SPDK_BDEV_INTERNAL_H
|
|
|
|
|
|
|
|
#include "spdk/bdev.h"
|
|
|
|
|
2022-04-25 17:13:18 +00:00
|
|
|
#define ZERO_BUFFER_SIZE 0x100000
|
|
|
|
|
2019-09-23 09:34:58 +00:00
|
|
|
struct spdk_bdev;
|
|
|
|
struct spdk_bdev_io;
|
|
|
|
struct spdk_bdev_channel;
|
|
|
|
|
2019-11-18 22:43:33 +00:00
|
|
|
struct spdk_bdev_io *bdev_channel_get_io(struct spdk_bdev_channel *channel);
|
2019-09-23 09:34:58 +00:00
|
|
|
|
2019-11-18 22:40:50 +00:00
|
|
|
void bdev_io_init(struct spdk_bdev_io *bdev_io, struct spdk_bdev *bdev, void *cb_arg,
|
|
|
|
spdk_bdev_io_completion_cb cb);
|
2019-09-23 09:34:58 +00:00
|
|
|
|
2019-11-18 22:34:00 +00:00
|
|
|
void bdev_io_submit(struct spdk_bdev_io *bdev_io);
|
2019-09-23 09:34:58 +00:00
|
|
|
|
|
|
|
#endif /* SPDK_BDEV_INTERNAL_H */
|