Function sbi_rt::nacl_probe_feature
source · pub fn nacl_probe_feature(feature_id: u32) -> SbiRet
Expand description
Probe a nested acceleration feature.
This is a mandatory function of the SBI nested acceleration extension.
§Parameters
The feature_id
parameter specifies the nested acceleration feature to probe.
Possible feature IDs are defined in the table below:
§Return value
This function always returns SbiRet::success()
in SbiRet.error
.
It returns 0 in SbiRet.value
if the given feature_id
is not available,
or 1 in SbiRet.value
if it is available.
This function is defined in RISC-V SBI Specification chapter 15.5.