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
  - in devctl tool
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

Reply via email to