ReactOS 0.4.16-dev-823-g9a093ec
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
Functions | |
BOOLEAN NTAPI | IoSetThreadHardErrorMode (_In_ BOOLEAN HardErrorEnabled) |
static VOID | HvpValidateBaseHeader (_In_ PHHIVE RegistryHive) |
Validates the base block header of a primary hive for consistency. | |
static BOOLEAN CMAPI | HvpWriteLog (_In_ PHHIVE RegistryHive) |
Writes dirty data in a transacted way to a hive log file during hive syncing operation. Log files are used by the kernel/bootloader to perform recovery operations against a damaged primary hive. | |
static BOOLEAN CMAPI | HvpWriteHive (_In_ PHHIVE RegistryHive, _In_ BOOLEAN OnlyDirty, _In_ ULONG FileType) |
Writes data (dirty or non) to a primary hive during syncing operation. Hive writing is also performed during a flush occurrence on request by the system. | |
BOOLEAN CMAPI | HvSyncHive (_In_ PHHIVE RegistryHive) |
Synchronizes a registry hive with latest updates from dirty data present in volatile memory, aka RAM. It writes both to hive log and corresponding primary hive. Syncing is done on request by the system during a flush occurrence. | |
BOOLEAN CMAPI | HvHiveWillShrink (_In_ PHHIVE RegistryHive) |
Determines whether a registry hive needs to be shrinked or not based on its overall size of the hive space to avoid unnecessary bloat. | |
BOOLEAN CMAPI | HvWriteHive (_In_ PHHIVE RegistryHive) |
Writes data to a registry hive. Unlike HvSyncHive, this function just writes the wholy registry data to a primary hive, ignoring if a certain data block is dirty or not. | |
BOOLEAN CMAPI | HvWriteAlternateHive (_In_ PHHIVE RegistryHive) |
Writes data to an alternate registry hive. An alternate hive is usually backed up by a primary hive. This function is tipically used to force write data into the alternate hive if both hives no longer match. | |
BOOLEAN CMAPI | HvSyncHiveFromRecover (_In_ PHHIVE RegistryHive) |
Synchronizes a hive with recovered data during a healing/resuscitation operation of the registry. | |
Determines whether a registry hive needs to be shrinked or not based on its overall size of the hive space to avoid unnecessary bloat.
@unimplemented
[in] | RegistryHive | A pointer to a hive descriptor where hive shrinking is to be determined. |
Validates the base block header of a primary hive for consistency.
[in] | RegistryHive | A pointer to a hive descriptor to look for the header block. |
Definition at line 39 of file hivewrt.c.
Referenced by HvpWriteHive(), and HvpWriteLog().
|
static |
Writes data (dirty or non) to a primary hive during syncing operation. Hive writing is also performed during a flush occurrence on request by the system.
[in] | RegistryHive | A pointer to a hive descriptor where the data is to be written to that hive. |
[in] | OnlyDirty | If set to TRUE, the function only looks for dirty data to be written to the primary hive, otherwise if it's set to FALSE then the function writes all the data. |
[in] | FileType | The file type of a registry hive. This can be HFILE_TYPE_PRIMARY or HFILE_TYPE_ALTERNATE. |
Definition at line 311 of file hivewrt.c.
Referenced by HvSyncHive(), HvSyncHiveFromRecover(), HvWriteAlternateHive(), and HvWriteHive().
Writes dirty data in a transacted way to a hive log file during hive syncing operation. Log files are used by the kernel/bootloader to perform recovery operations against a damaged primary hive.
@unimplemented
[in] | RegistryHive | A pointer to a hive descriptor where the log belongs to and of which we write data into the said log. |
Definition at line 85 of file hivewrt.c.
Referenced by HvSyncHive().
Synchronizes a registry hive with latest updates from dirty data present in volatile memory, aka RAM. It writes both to hive log and corresponding primary hive. Syncing is done on request by the system during a flush occurrence.
[in] | RegistryHive | A pointer to a hive descriptor where syncing is to be performed. |
Definition at line 466 of file hivewrt.c.
Synchronizes a hive with recovered data during a healing/resuscitation operation of the registry.
[in] | RegistryHive | A pointer to a hive descriptor where data syncing is to be done. |
Definition at line 672 of file hivewrt.c.
Referenced by HvInitialize().
Writes data to an alternate registry hive. An alternate hive is usually backed up by a primary hive. This function is tipically used to force write data into the alternate hive if both hives no longer match.
[in] | RegistryHive | A pointer to a hive descriptor where data is to be written into. |
Definition at line 634 of file hivewrt.c.
Referenced by _Function_class_().
Writes data to a registry hive. Unlike HvSyncHive, this function just writes the wholy registry data to a primary hive, ignoring if a certain data block is dirty or not.
[in] | RegistryHive | A pointer to a hive descriptor where data is be written into. |
Definition at line 596 of file hivewrt.c.
Referenced by HvSyncHive().