summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2024-06-06 13:34:06 +0800
committerRbb666 <[email protected]>2024-09-11 14:34:13 +0800
commitf9b632d52d07d668405909bdc8a6201cf6891e88 (patch)
treed7d09bec50deb94f106201a933cc837aede4972b /src
parent0df9a9f0cc487958aa79cbec9694276c0653631a (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')
0 files changed, 0 insertions, 0 deletions