Function sbi_rt::probe_extension
source · pub fn probe_extension<E>(extension: E) -> ExtensionInfowhere
E: Extension,
Expand description
Probe information about one SBI extension from the current environment.
Returns 0 if given SBI extension_id
is not available, or typically
1 if it’s available. Implementation would define further non-zero
return values for information about this extension if it is available.
This function is defined in RISC-V SBI Specification chapter 4.4. According to the introduction of chapter 4, all base extension functions must success and return no error code.