smmu_safety()

Query the smmuman service for its safety status

Synopsis:

#include <smmu.h>

int smmu_safety(void);

Arguments:

None.

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.

Warning: If you are building a safety-related system, you must use safety-certified component. For more information, see Component safety-certification status in the smmuman chapter.

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.