Changeset bd5a663 in mainline for generic/src/ipc/sysipc.c


Ignore:
Timestamp:
2006-05-17T14:03:44Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
59477e3
Parents:
bdb9ea8
Message:

Modify ipc_wait_for_call() to support all of blocking, non-blocking and timeout operation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/ipc/sysipc.c

    rbdb9ea8 rbd5a663  
    469469 *
    470470 * @param calldata Pointer to buffer where the call/answer data is stored
    471  * @param flags
     471 * @param usec Timeout. See waitq_sleep_timeout() for explanation.
     472 * @param nonblocking See waitq_sleep_timeout() for explanation.
     473 *
    472474 * @return Callid, if callid & 1, then the call is answer
    473475 */
    474 __native sys_ipc_wait_for_call(ipc_data_t *calldata, __native flags)
     476__native sys_ipc_wait_for_call(ipc_data_t *calldata, __u32 usec, int nonblocking)
    475477{
    476478        call_t *call;
    477479
    478480restart:       
    479         call = ipc_wait_for_call(&TASK->answerbox, flags);
     481        call = ipc_wait_for_call(&TASK->answerbox, usec, nonblocking);
    480482        if (!call)
    481483                return 0;
Note: See TracChangeset for help on using the changeset viewer.