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

Changes between Version 25 and Version 26 of DeviceDrivers


Ignore:
Timestamp:
2012-01-13T16:30:16Z (7 years ago)
Author:
Jiri Svoboda
Comment:

More about location service

Legend:

Unmodified
Added
Removed
Modified
  • DeviceDrivers

    v25 v26  
    253253== Exposing Driver Services to Clients ==
    254254
    255 All driver services are provided to clients (applications) via the location service. For each bound exposed function node the device framework creates a service whose name is based on the physical path of that function. The services are created in the ''devices'' namespace. This is mapped to the {{{/loc/devices}}} directory via ''locfs''. For example:
     255All driver services are provided to clients (applications) via the location service. As such, they enjoy all benefits of such services, some of which we will note explicitly. For each bound exposed function node the device framework creates a service whose name is based on the physical path of that function. The services are created in the ''devices'' namespace. This is mapped to the {{{/loc/devices}}} directory via ''locfs''. For example:
    256256
    257257{{{
     
    263263}}}
    264264
    265 Often the driver will want to add the function service to one or more service categories. Service categories imply the protocol spoken by a service (and possibly also the intended use). This can be done using the DDF function:
     265Each service currently running in the system is uniquely identified by a numerical identifier called ''service ID''. Often the driver will want to add the function service to one or more service categories. Service categories imply the protocol spoken by a service (and possibly also the intended use). This can be done using the DDF function:
    266266{{{
    267267int ddf_fun_add_to_category(ddf_fun_t *fun, const char *cat_name)
    268268}}}
    269269
    270 For example, the input server automatically picks up and opens any device in the categories ''keyboard'' and ''mouse''.
     270Service consumers can find services by category. They can also register to receive notification when new services are registered. For example, the input server automatically picks up and opens any (device) service in the categories ''keyboard'' and ''mouse''.
    271271
    272272== Traditional I/O Device Drivers ==