> -----Original Message-----
> From: lng-odp-boun...@lists.linaro.org [mailto:lng-odp-
> boun...@lists.linaro.org] On Behalf Of ext Taras Kondratiuk
> Sent: Thursday, January 29, 2015 6:47 PM
> To: lng-odp@lists.linaro.org
> Subject: [lng-odp] Handling xxx_INVALID handles
> 
> Hi
> 
> We had a discussion recently about wrong ODP handles passed to API
> functions. As far as I remember we agreed that in this case behavior is
> undefined. What about passing xxx_INVALID values to API?
> 
> Currently packet IO verification tests pass ODP_PKTIO_INVALID explicitly
> to some API functions and expect them to return error.
> 

Generally, XXX_INVALID is as bad handle as any other random value, and API 
calls are not expected handle it differently (if not documented otherwise). 
It's implementation choice if it checks for that specific value (and on which 
debug levels).

XXX_NULL handle is specific (input) value telling that user does not give a 
valid handle and e.g. lets the implementation to allocate the resource.

-Petri


> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp

_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to