[Tinyos-devel] ENOMEM in TinyError.h
Miklos Maroti
mmaroti at math.u-szeged.hu
Tue May 6 10:17:54 PDT 2008
> The semantics of an error code are not independent of the interface issuing
> them.
Are we sure that every interface returns only those error codes that
are actually documented? If we introduce new error codes and a
component just returns an error code it got from an internal
component, then suddenly you get unexpected error codes. Therefore, we
should try to minimize the number of error codes.
> EBUSY denotes that the component was in the middle of doing something;
> ERETRY, in contrast, can just denote that something went wrong and you
> should retry. I'd be surprised for EBUSY to be signaled in a completion
> event, while the one use of ERETRY is in the CC2420 stack, when something
> goes wrong and it doesn't get an SFD on transmission.
Ok. Maybe all EBUSY could be converted to ERETRY. We do not talk about
semantics (i.e. what the code should do), but we are talking about
English, which word describes the action best.
Miklos
More information about the Tinyos-devel
mailing list