Configuration Errors and Exceptions
API Reference Manual  /  Device API  /  Device API Functions  / 

Callbacks

SIM_cbdata_data

Name

SIM_cbdata_data — get cbdata data pointer

Synopsis

C and DML

#include <simics/device-api.h> // in C
// always available in DML

FORCE_INLINE void *
SIM_cbdata_data(const cbdata_t *cbd);

Description

Return the data pointer of the callback data cbd.

See Also

cbdata_t

SIM_cbdata_type

Name

SIM_cbdata_type — get cbdata type pointer

Synopsis

C and DML

#include <simics/device-api.h> // in C
// always available in DML

FORCE_INLINE const cbdata_type_t *
SIM_cbdata_type(const cbdata_t *cbd);

Description

Return a pointer to the type information of the callback data cbd.

See Also

cbdata_t

SIM_free_cbdata

Name

SIM_free_cbdata — free cbdata

Synopsis

C and DML

#include <simics/device-api.h> // in C
// always available in DML

FORCE_INLINE void
SIM_free_cbdata(cbdata_t *cbd);

Description

Free the callback data cbd by calling its dealloc function.

See Also

cbdata_t

SIM_make_cbdata

Name

SIM_make_cbdata — create cbdata

Synopsis

C and DML

#include <simics/device-api.h> // in C
// always available in DML

FORCE_INLINE cbdata_t
SIM_make_cbdata(const cbdata_type_t *type, void *data);

Description

Create new callback data of type type and value data.

See Also

cbdata_t

SIM_make_simple_cbdata

Name

SIM_make_simple_cbdata — create untyped cbdata

Synopsis

C and DML

#include <simics/device-api.h> // in C
// always available in DML

FORCE_INLINE cbdata_t
SIM_make_simple_cbdata(void *obj);

Description

Create new untyped callback data of value data. An untyped callback data has no dealloc function.

See Also

cbdata_t

Configuration Errors and Exceptions