Function simics::api::base::conf_object::create_class
source · pub fn create_class<S>(name: S, class_info: ClassInfo) -> Result<*mut ConfClass>
Expand description
This function creates a new class that can be instantiated by calling the SIM_create_object function. It is a replacement for SIM_register_class and should be used in all new code.
The name can contain upper and lower case ASCII letters, hyphens, underscores, and digits. It must not begin with a digit or a hyphen and must not end with a hyphen.
§Arguments
name
- The name to register the class forclass_info
- The description of the class
§Return Value
A pointer to the successfully registered class object, or an error if registration is not successful
§Context
Global Context