Changes between Version 9 and Version 10 of DeviceDrivers


Ignore:
Timestamp:
2011-11-10T12:58:35Z (12 years ago)
Author:
Jiri Svoboda
Comment:

Clarify conditions

Legend:

Unmodified
Added
Removed
Modified
  • DeviceDrivers

    v9 v10  
    8686The 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.
    8787
    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).
     88In 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).
    8989
    9090== Exposing Driver Services to Clients ==