xref: /spdk/lib/fsdev/fsdev_internal.h (revision bf30e09abe1667ae2769aa367cde39c550bcac00)
1*bf30e09aSAnton Nayshtut /*   SPDX-License-Identifier: BSD-3-Clause
2*bf30e09aSAnton Nayshtut  *   Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3*bf30e09aSAnton Nayshtut  */
4*bf30e09aSAnton Nayshtut 
5*bf30e09aSAnton Nayshtut /** \file
6*bf30e09aSAnton Nayshtut  * Filesystem device internal APIs
7*bf30e09aSAnton Nayshtut  */
8*bf30e09aSAnton Nayshtut 
9*bf30e09aSAnton Nayshtut #ifndef SPDK_FSDEV_INT_H
10*bf30e09aSAnton Nayshtut #define SPDK_FSDEV_INT_H
11*bf30e09aSAnton Nayshtut 
12*bf30e09aSAnton Nayshtut #include "spdk/thread.h"
13*bf30e09aSAnton Nayshtut 
14*bf30e09aSAnton Nayshtut void fsdev_io_submit(struct spdk_fsdev_io *fsdev_io);
15*bf30e09aSAnton Nayshtut struct spdk_fsdev_io *fsdev_channel_get_io(struct spdk_fsdev_channel *channel);
16*bf30e09aSAnton Nayshtut 
17*bf30e09aSAnton Nayshtut #define __io_ch_to_fsdev_ch(io_ch)	((struct spdk_fsdev_channel *)spdk_io_channel_get_ctx(io_ch))
18*bf30e09aSAnton Nayshtut 
19*bf30e09aSAnton Nayshtut #endif /* SPDK_FSDEV_INT_H */
20