Query the smmuman service for its safety status
Synopsis:
#include <smmu.h>
int smmu_safety(void);
Library:
libsmmu.a
Description:
The smmu_safety() function checks the smmuman
service's safety status. See
safety in
Global options for information about
configuring your system's response to the presence of components that aren't
safety-certified.
Returns:
- SMMUMAN_SAFETY_ERROR
- Failure: errno is set. The function was unable to
retrieve the safety status of the smmuman service.
- SMMUMAN_SAFETY_NO
- The smmuman service or some dependency (e.g.,
procnto) is not a safety-certified
component.
- SMMUMAN_SAFETY_YES
- The smmuman service and all its dependencies are
safety-certified components.