Changes between Version 20 and Version 21 of DeviceDrivers


Ignore:
Timestamp:
2011-11-14T21:51:46Z (12 years ago)
Author:
Jiri Svoboda
Comment:

ddf_fun_… call stubs

Legend:

Unmodified
Added
Removed
Modified
  • DeviceDrivers

    v20 v21  
    3737
    3838There is no formal distinction between a bus (nexus) driver and a leaf (device) driver. All drivers consume device nodes and produce function nodes. There are two type of functions (function nodes), ''inner functions'' and ''exposed functions''. Inner functions are functions internal to the device graph and DDF will attempt to attach child devices/drivers under these functions. Exposed functions are meant to be consumed by clients external to the DDF (such as applications or non-DDF servers) and the DDF will expose them as services via the Location Service.
     39
     40==== Device and Function Life Cycle ====
     41
     42'''TODO'''
    3943
    4044== DDF Driver Structure ==
     
    144148return ENOTSUP.
    145149
    146 == Device and Function Life Cycle ==
     150=== Calls for Managing Functions ===
     151
     152DDF provides the driver with a set of calls to manage functions:
    147153
    148154 * ddf_fun_create()
     
    155161 * ddf_fun_offline()
    156162
     163==== ddf_fun_create ====
     164
     165{{{
     166ddf_fun_t *ddf_fun_create(ddf_dev_t *dev, fun_type_t ftype, const char *name)
     167}}}
     168
     169==== ddf_fun_destroy ====
     170
     171{{{
     172ddf_fun_t *ddf_fun_destroy(ddf_fun_t *fun)
     173}}}
     174
     175==== ddf_fun_add_match_id ====
     176
     177{{{
     178int ddf_fun_add_match_id(ddf_fun_t *fun, const char *match_id_str, int match_score)
     179}}}
     180
     181==== ddf_fun_add_to_category ====
     182
     183{{{
     184int ddf_fun_add_to_category(ddf_fun_t *fun, const char *cat_name)
     185}}}
     186
     187==== ddf_fun_bind ====
     188
     189{{{
     190int ddf_fun_bind(ddf_fun_t *fun)
     191}}}
     192
     193==== ddf_fun_unbind ====
     194
     195{{{
     196int ddf_fun_unbind(ddf_fun_t *fun)
     197}}}
     198
     199==== ddf_fun_online ====
     200
     201{{{
     202int ddf_fun_online(ddf_fun_t *fun)
     203}}}
     204
     205==== ddf_fun_offline ====
     206
     207{{{
     208int ddf_fun_offline(ddf_fun_t *fun)
     209}}}
     210
    157211== Soft State Management ==
    158212