Changeset 19b28b0 in mainline for uspace/lib/libc/generic/ipc.c


Ignore:
Timestamp:
2009-03-02T17:31:05Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8026731
Parents:
97c9da8
Message:

add IPC_FLAG_BLOCKING for generic IPC blocking operations
add ipc_connect_me_to_blocking() for blocking connections
mount() has new flags argument
get_cons_phone() → get_console_phone()
add common console_wait()
simplify vfs_connect() using blocking connection
add blocking support for device_get_handle()
swap VFS_MOUNT arguments, and blocking mount support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/ipc.c

    r97c9da8 r19b28b0  
    599599        int res;
    600600
    601         res = ipc_call_sync_3_5(phoneid, IPC_M_CONNECT_ME_TO, arg1, arg2, arg3, 
     601        res = ipc_call_sync_3_5(phoneid, IPC_M_CONNECT_ME_TO, arg1, arg2, arg3,
    602602            NULL, NULL, NULL, NULL, &newphid);
     603        if (res)
     604                return res;
     605        return newphid;
     606}
     607
     608/** Ask through phone for a new connection to some service.
     609 *
     610 * If the connection is not available at the moment, the
     611 * call will block.
     612 *
     613 * @param phoneid       Phone handle used for contacting the other side.
     614 * @param arg1          User defined argument.
     615 * @param arg2          User defined argument.
     616 * @param arg3          User defined argument.
     617 *
     618 * @return              New phone handle on success or a negative error code.
     619 */
     620int ipc_connect_me_to_blocking(int phoneid, int arg1, int arg2, int arg3)
     621{
     622        ipcarg_t newphid;
     623        int res;
     624
     625        res = ipc_call_sync_4_5(phoneid, IPC_M_CONNECT_ME_TO, arg1, arg2, arg3,
     626            IPC_FLAG_BLOCKING, NULL, NULL, NULL, NULL, &newphid);
    603627        if (res)
    604628                return res;
Note: See TracChangeset for help on using the changeset viewer.