Changes between Version 20 and Version 21 of DeviceDrivers
- Timestamp:
- 2011-11-14T21:51:46Z (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeviceDrivers
v20 v21 37 37 38 38 There 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''' 39 43 40 44 == DDF Driver Structure == … … 144 148 return ENOTSUP. 145 149 146 == Device and Function Life Cycle == 150 === Calls for Managing Functions === 151 152 DDF provides the driver with a set of calls to manage functions: 147 153 148 154 * ddf_fun_create() … … 155 161 * ddf_fun_offline() 156 162 163 ==== ddf_fun_create ==== 164 165 {{{ 166 ddf_fun_t *ddf_fun_create(ddf_dev_t *dev, fun_type_t ftype, const char *name) 167 }}} 168 169 ==== ddf_fun_destroy ==== 170 171 {{{ 172 ddf_fun_t *ddf_fun_destroy(ddf_fun_t *fun) 173 }}} 174 175 ==== ddf_fun_add_match_id ==== 176 177 {{{ 178 int 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 {{{ 184 int ddf_fun_add_to_category(ddf_fun_t *fun, const char *cat_name) 185 }}} 186 187 ==== ddf_fun_bind ==== 188 189 {{{ 190 int ddf_fun_bind(ddf_fun_t *fun) 191 }}} 192 193 ==== ddf_fun_unbind ==== 194 195 {{{ 196 int ddf_fun_unbind(ddf_fun_t *fun) 197 }}} 198 199 ==== ddf_fun_online ==== 200 201 {{{ 202 int ddf_fun_online(ddf_fun_t *fun) 203 }}} 204 205 ==== ddf_fun_offline ==== 206 207 {{{ 208 int ddf_fun_offline(ddf_fun_t *fun) 209 }}} 210 157 211 == Soft State Management == 158 212