Changeset 25a179e in mainline for uspace/srv/devman/drv_conn.c


Ignore:
Timestamp:
2017-12-20T19:51:45Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f96b6c8
Parents:
d4a829e
Message:

IPC return values are always errno constants. Adjust types to reflect that.

In principle, IPC server is not allowed to return non-errno values via
the "main" return value, because kernel interprets it (e.g. EHANGUP).
It's still possible to return arbitrary additional return values alongside EOK,
which are not interpreted in normal communication.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/devman/drv_conn.c

    rd4a829e r25a179e  
    407407                fun_busy_unlock(fun);
    408408                fun_del_ref(fun);
    409                 async_answer_0(iid, (sysarg_t) rc);
     409                async_answer_0(iid, rc);
    410410                return;
    411411        }
     
    414414        fun_del_ref(fun);
    415415       
    416         async_answer_0(iid, (sysarg_t) EOK);
     416        async_answer_0(iid, EOK);
    417417}
    418418
     
    448448                fun_busy_unlock(fun);
    449449                fun_del_ref(fun);
    450                 async_answer_0(iid, (sysarg_t) rc);
     450                async_answer_0(iid, rc);
    451451                return;
    452452        }
     
    454454        fun_busy_unlock(fun);
    455455        fun_del_ref(fun);
    456         async_answer_0(iid, (sysarg_t) EOK);
     456        async_answer_0(iid, EOK);
    457457}
    458458
Note: See TracChangeset for help on using the changeset viewer.