Changeset a46e56b in mainline for uspace/srv/ns/service.c


Ignore:
Timestamp:
2018-03-22T06:49:35Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
77f0a1d
Parents:
3e242d2
git-author:
Jakub Jermar <jakub@…> (2018-03-21 23:29:06)
git-committer:
Jakub Jermar <jakub@…> (2018-03-22 06:49:35)
Message:

Prefer handle over ID in naming handle variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/ns/service.c

    r3e242d2 ra46e56b  
    8787typedef struct {
    8888        link_t link;
    89         service_t service;    /**< Service ID */
    90         iface_t iface;        /**< Interface ID */
    91         cap_call_handle_t callid;  /**< Call ID waiting for the connection */
    92         sysarg_t arg3;        /**< Third argument */
     89        service_t service;         /**< Service ID */
     90        iface_t iface;             /**< Interface ID */
     91        cap_call_handle_t chandle; /**< Call handle waiting for the connection */
     92        sysarg_t arg3;             /**< Third argument */
    9393} pending_conn_t;
    9494
     
    119119                hashed_service_t *hashed_service = hash_table_get_inst(link, hashed_service_t, link);
    120120                async_exch_t *exch = async_exchange_begin(hashed_service->sess);
    121                 async_forward_fast(pending->callid, exch, pending->iface,
     121                async_forward_fast(pending->chandle, exch, pending->iface,
    122122                    pending->arg3, 0, IPC_FF_NONE);
    123123                async_exchange_end(exch);
     
    163163 * @param iface   Interface to be connected to.
    164164 * @param call    Pointer to call structure.
    165  * @param callid  Call ID of the request.
     165 * @param chandle  Call ID of the request.
    166166 *
    167167 * @return Zero on success or a value from @ref errno.h.
     
    169169 */
    170170void connect_to_service(service_t service, iface_t iface, ipc_call_t *call,
    171     cap_call_handle_t callid)
     171    cap_call_handle_t chandle)
    172172{
    173173        sysarg_t arg3 = IPC_GET_ARG3(*call);
     
    189189                        pending->service = service;
    190190                        pending->iface = iface;
    191                         pending->callid = callid;
     191                        pending->chandle = chandle;
    192192                        pending->arg3 = arg3;
    193193
     
    202202        hashed_service_t *hashed_service = hash_table_get_inst(link, hashed_service_t, link);
    203203        async_exch_t *exch = async_exchange_begin(hashed_service->sess);
    204         async_forward_fast(callid, exch, iface, arg3, 0, IPC_FF_NONE);
     204        async_forward_fast(chandle, exch, iface, arg3, 0, IPC_FF_NONE);
    205205        async_exchange_end(exch);
    206206        return;
    207207
    208208out:
    209         async_answer_0(callid, retval);
     209        async_answer_0(chandle, retval);
    210210}
    211211
Note: See TracChangeset for help on using the changeset viewer.