On Wed, Jul 9, 2014 at 2:17 AM, Jiri Svoboda <[email protected]> wrote:
> Hi Martin,
>
>
> M. D. wrote:
>
> You just hit my blind spot. To what extend is devman_device_connect()
> actually deprecated? Should we make a systematic effort to eliminate
> devman_device_connect() completely?
>
> Very good question. devman_device_connect() has been supplanted by
> loc_serice_connect() for some 95% of cases, but not for the remaining 5% so
> we cannot remove it completely... at least not yet.
>
> The idea is that devman_device_connect() is used to connect specifically to
> a *device*. Now the idea with HelenOS device framework is that any *normal*
> client should not know or care about devices, it just wants to connect to a
> *service* speaking a particular protocol. Therefore it should use
> loc_service_connect()... I looked at it and there are a few other cases
> where this rule is not followed.
>
> There are two legitimate cases where devman_device_connect() is used:
>   - in USB drivers to connect to the HCD

USB drivers don't need that anymore (not yet in mainline)

>   - in devctl tool

I think device specific config and debuging tools will always have a
need to connect to devices directly

jan

> now these two cases could perhaps also be replaced with using something
> else, but they are okay from the POV of the idea above.
>
> Regards,
> Jiri
>
> _______________________________________________
> HelenOS-devel mailing list
> [email protected]
> http://lists.modry.cz/listinfo/helenos-devel
>

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/listinfo/helenos-devel

Reply via email to