Sindbad~EG File Manager
/**
@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