Writing Device Drivers

Other Operations

size_t SIZEOF_STRUCT(structname, datamodel)

Returns the size of struct_name based on the given data model.

size_t SIZEOF_PTR(datamodel)

Returns the size of a pointer based on the given data model.