open-cas-linux/modules/cas_cache/threads.h
Robert Baldyga 08e9f1a323 Remove ocf_queue_get_cache()
Signed-off-by: Robert Baldyga <robert.baldyga@huawei.com>
2024-09-09 14:48:44 +02:00

25 lines
586 B
C

/*
* Copyright(c) 2012-2021 Intel Corporation
* Copyright(c) 2024 Huawei Technologies
* SPDX-License-Identifier: BSD-3-Clause
*/
#ifndef __THREADS_H__
#define __THREADS_H__
#include "ocf/ocf.h"
#include "linux_kernel_version.h"
#define CAS_CPUS_ALL -1
int cas_create_queue_thread(ocf_cache_t cache, ocf_queue_t q, int cpu);
void cas_kick_queue_thread(ocf_queue_t q);
void cas_stop_queue_thread(ocf_queue_t q);
int cas_create_cleaner_thread(ocf_cleaner_t c);
void cas_kick_cleaner_thread(ocf_cleaner_t c);
void cas_stop_cleaner_thread(ocf_cleaner_t c);
#endif /* __THREADS_H__ */