CfgMgr::Reload

Description

Reloads the YAML file. When the YAML file to be loaded changes, you can use this interface to reload it to generate a new initial configuration file.

Prototype

uint32_t CfgMgr::Reload(bool needClean = false)

Function Security Level

ASIL-D

Parameters

Parameter

Input/Output

Description

needClean

Input

Whether to delete persistent data. By default, persistent data is not deleted.

Returns

The return value is of the uint32_t type. If the operation is successful, CFGMGR_SUCCESS is returned. If the operation fails, an error code is returned.

Usage

After SELinux permission control is enabled, non-privileged processes can be called only after the read and write permissions on dp:/res/cfgmgr/mgmt are configured.

Precautions

This interface takes effect immediately after it is called.