]>
git.proxmox.com Git - ceph.git/blob - ceph/src/spdk/ocf/src/ocf_io_priv.h
2 * Copyright(c) 2012-2018 Intel Corporation
3 * SPDX-License-Identifier: BSD-3-Clause-Clear
6 #ifndef __OCF_IO_PRIV_H__
7 #define __OCF_IO_PRIV_H__
10 #include "ocf_request.h"
14 struct ocf_request
*req
;
17 env_allocator
*ocf_io_allocator_create(uint32_t size
, const char *name
);
19 void ocf_io_allocator_destroy(env_allocator
*allocator
);
21 struct ocf_io
*ocf_io_new(ocf_volume_t volume
);
23 static inline void ocf_io_start(struct ocf_io
*io
)
26 * We want to call start() callback only once, so after calling
27 * we set it to NULL to prevent multiple calls.
35 static inline void ocf_io_end(struct ocf_io
*io
, int error
)
42 #endif /* __OCF_IO_PRIV_H__ */