Sindbad~EG File Manager

Current Path : /usr/src/file_protector-1.1-1522/
Upload File :
Current File : //usr/src/file_protector-1.1-1522/module_rundown_protection.h

/**
 @file     module_rundown_protection.h
 @brief    Global module rundown protection used for safe syscalls handling
 @details  Copyright (c) 2022 Acronis International GmbH
 @author   Denis Kopyrin (Denis.Kopyrin@acronis.com)
 @since    $Id: $
 */

#pragma once
#include <linux/types.h>	// bool, [u]int(8|16|32|64)_t, atomics

void mod_rundown_protection_init(bool ready);
bool mod_rundown_protection_lock(void);
void mod_rundown_protection_unlock(void);
void mod_rundown_protection_set_rundown_active(void);
void mod_rundown_protection_wait_for_rundown(void);
bool mod_rundown_protection_wait_for_rundown_timeout(unsigned long timeout_jiffies);
void mod_rundown_protection_set_ready(void);

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists