Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changes between Version 23 and Version 24 of DeviceDrivers


Ignore:
Timestamp:
2011-11-16T17:17:49Z (8 years ago)
Author:
Jiri Svoboda
Comment:

ddf_fun_online, ddf_fun_offline

Legend:

Unmodified
Added
Removed
Modified
  • DeviceDrivers

    v23 v24  
    205205}}}
    206206
    207 Unbind function ''fun'' from the system. Makes the function ''fun'' unavailable to the system. Calling ''ddf_fun_unbind'' on an online function is interpreted as surprise removal. Calling ''ddf_fun_unbind'' on an offline function is interpreted as anticipated removal. ''ddf_fun_unbind'' returns EOK on success, negative error code on failure. ''ddf_fun_unbind'' can fail if a child driver ''dev_remove'' or ''dev_gone'' entry point fails.
     207Unbind function ''fun'' from the system. Makes the function ''fun'' unavailable to the system. Calling ''ddf_fun_unbind'' on an online inner function is interpreted as surprise removal (''dev_gone'' will be called for the device under ''fun''). Calling ''ddf_fun_unbind'' on an offline function is interpreted as anticipated removal. ''ddf_fun_unbind'' returns EOK on success, negative error code on failure. ''ddf_fun_unbind'' can fail if a child driver ''dev_remove'' or ''dev_gone'' entry point fails.
    208208
    209209==== ddf_fun_online ====
     
    213213}}}
    214214
     215Bring function ''fun'' on line. This function is used from the ''fun_online'' entry point to online one or more functions. The DDF will set the state of the function to ''on line''. If the function is an exposed function, corresponding Location service entry is created. If the function is an inner function, DDF will attach descendant devices to the function. ''ddf_fun_online'' returns EOK on success or negative error code.
     216
    215217==== ddf_fun_offline ====
    216218
     
    218220int ddf_fun_offline(ddf_fun_t *fun)
    219221}}}
     222
     223Bring function ''fun'' off line. This function is used from the ''fun_offline'' entry point to offline one or more functions. The DDF will set the state of the function to ''off line''. If the function is an exposed function, corresponding Location service entry is deleted. If the function is an inner function, DDF will recursively remove the device sub-tree under ''fun''. ''ddf_fun_offline'' returns EOK on success or negative error code.
    220224
    221225== Soft State Management ==