4
0
mirror of https://github.com/RT-Thread/rt-thread.git synced 2025-02-22 04:35:24 +08:00
GuEe-GUI f9b632d52d [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 <wusongjie@rt-thread.com>
2024-09-11 14:34:13 +08:00
..
2024-09-11 14:34:13 +08:00
2024-08-19 10:39:15 +08:00
2024-07-04 00:34:01 +08:00
2024-09-02 21:27:47 +08:00
2013-01-08 22:40:58 +08:00