| Server IP : 103.18.247.38 / Your IP : 216.73.217.101 Web Server : Apache System : Linux server2.aznethosting.net 4.18.0-553.144.1.el8_10.x86_64 #1 SMP Tue Jul 14 09:26:58 EDT 2026 x86_64 User : gmbizz ( 1200) PHP Version : 8.1.34 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/src/file_protector-1.1-1565/ |
Upload File : |
/**
@file interval_tree.h
@brief Interval sets based on rbtree
@details Copyright (c) 2024 Acronis International GmbH
@author Bruce Wang (bruce.wang@acronis.com)
@since $Id: $
*/
#include <linux/rbtree.h>
#include <linux/types.h>
#ifdef KERNEL_MOCK
#include <mock/mock_types.h>
#endif
typedef struct
{
struct rb_root root;
// The interval_count should be less then the size of file
uint64_t interval_count;
#ifdef INTERVAL_SET_DEBUG
uint64_t total_interval_size;
#endif
} interval_set_t;
#ifdef __cplusplus
extern "C"
{
#endif
void clean_interval_tree(interval_set_t *set);
bool insert_interval(uint64_t low, uint64_t high, interval_set_t *set);
bool check_interval(uint64_t low, uint64_t high, interval_set_t *set);
#ifdef __cplusplus
}
#endif