diff options
| author | GuEe-GUI <[email protected]> | 2024-06-06 13:34:06 +0800 |
|---|---|---|
| committer | Rbb666 <[email protected]> | 2024-09-11 14:34:13 +0800 |
| commit | f9b632d52d07d668405909bdc8a6201cf6891e88 (patch) | |
| tree | d7d09bec50deb94f106201a933cc837aede4972b /src/thread.c | |
| parent | 0df9a9f0cc487958aa79cbec9694276c0653631a (diff) | |
[DM/MISC] Add error no for ptr
When the driver request a API gets RT_NULL which return value is ptr,
they could not know why get a RT_NULL.
some API return RT_NULL, is not error internal maybe, it just not
supported for this platform, but the driver still could work ok,
the API can return (RT_NULL + -RT_EEMPTY) to driver.
on the other hand, the driver can do more behaviors by error no.
When the API return the -RT_EBUSY, driver can wait for a moment and retry.
When the API return the -RT_ENOSYS, driver can try the next mode or request's name.
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'src/thread.c')
0 files changed, 0 insertions, 0 deletions
