Changes between Version 9 and Version 10 of DeviceDrivers
- Timestamp:
- 2011-11-10T12:58:35Z (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeviceDrivers
v9 v10 86 86 The function ''ddf_fun_data_alloc'' allocates a driver-specific data structure ''size'' bytes large, associated with the function ''fun''. The structure will not be deallocated by the framework until ''ddf_fun_destroy()'' is called '''and''' control exits all driver entry points that are invoked with ''fun'' as parameter. 87 87 88 In practice, as long as you don't copy the pointer to device or function soft-state to a global structure, it can never become dangling. As long as you have the reference, it is valid (i.e. points to an allocated block).88 In practice, as long as you don't copy the pointer to device or function soft-state to a global/heap structure or pass it to another thread, it can never become dangling. As long as you have the reference, it is valid (i.e. points to an allocated block). 89 89 90 90 == Exposing Driver Services to Clients ==