Changeset 2133e02 in mainline for uspace/srv


Ignore:
Timestamp:
2015-08-18T20:14:05Z (10 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1a522e5
Parents:
84dc30c
Message:

canonically reserve the first argument of IPC_M_CONNECT_ME_TO for interface type
naming service: service handle in IPC_M_CONNECT_ME_TO needs to be shifted to the second argument
service connections that use the untyped (fallback) port can only provide one additional argument now

Location:
uspace/srv
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/cdfs/cdfs.c

    r84dc30c r2133e02  
    7474       
    7575        async_sess_t *vfs_sess = service_connect_blocking(EXCHANGE_SERIALIZE,
    76             SERVICE_VFS, 0, 0);
     76            SERVICE_VFS, 0);
    7777        if (!vfs_sess) {
    7878                printf("%s: Unable to connect to VFS\n", NAME);
  • uspace/srv/fs/exfat/exfat.c

    r84dc30c r2133e02  
    7676
    7777        async_sess_t *vfs_sess = service_connect_blocking(EXCHANGE_SERIALIZE,
    78             SERVICE_VFS, 0, 0);
     78            SERVICE_VFS, 0);
    7979        if (!vfs_sess) {
    8080                printf(NAME ": failed to connect to VFS\n");
  • uspace/srv/fs/ext4fs/ext4fs.c

    r84dc30c r2133e02  
    6666       
    6767        async_sess_t *vfs_sess = service_connect_blocking(EXCHANGE_SERIALIZE,
    68             SERVICE_VFS, 0, 0);
     68            SERVICE_VFS, 0);
    6969        if (!vfs_sess) {
    7070                printf("%s: Failed to connect to VFS\n", NAME);
  • uspace/srv/fs/fat/fat.c

    r84dc30c r2133e02  
    7676       
    7777        async_sess_t *vfs_sess = service_connect_blocking(EXCHANGE_SERIALIZE,
    78             SERVICE_VFS, 0, 0);
     78            SERVICE_VFS, 0);
    7979        if (!vfs_sess) {
    8080                printf(NAME ": failed to connect to VFS\n");
  • uspace/srv/fs/locfs/locfs.c

    r84dc30c r2133e02  
    7878       
    7979        async_sess_t *vfs_sess = service_connect_blocking(EXCHANGE_SERIALIZE,
    80             SERVICE_VFS, 0, 0);
     80            SERVICE_VFS, 0);
    8181        if (!vfs_sess) {
    8282                printf("%s: Unable to connect to VFS\n", NAME);
  • uspace/srv/fs/mfs/mfs.c

    r84dc30c r2133e02  
    7474
    7575        async_sess_t *vfs_sess = service_connect_blocking(EXCHANGE_SERIALIZE,
    76             SERVICE_VFS, 0, 0);
     76            SERVICE_VFS, 0);
    7777
    7878        if (!vfs_sess) {
  • uspace/srv/fs/tmpfs/tmpfs.c

    r84dc30c r2133e02  
    8181       
    8282        async_sess_t *vfs_sess = service_connect_blocking(EXCHANGE_SERIALIZE,
    83             SERVICE_VFS, 0, 0);
     83            SERVICE_VFS, 0);
    8484        if (!vfs_sess) {
    8585                printf(NAME ": Unable to connect to VFS\n");
  • uspace/srv/fs/udf/udf.c

    r84dc30c r2133e02  
    7474       
    7575        async_sess_t *vfs_sess =
    76             service_connect_blocking(EXCHANGE_SERIALIZE, SERVICE_VFS, 0, 0);
     76            service_connect_blocking(EXCHANGE_SERIALIZE, SERVICE_VFS, 0);
    7777        if (!vfs_sess) {
    7878                log_msg(LOG_DEFAULT, LVL_FATAL, "Failed to connect to VFS");
  • uspace/srv/hid/input/input.c

    r84dc30c r2133e02  
    746746                while (irc_sess == NULL)
    747747                        irc_sess = service_connect_blocking(EXCHANGE_SERIALIZE,
    748                             SERVICE_IRC, 0, 0);
     748                            SERVICE_IRC, 0);
    749749        }
    750750       
  • uspace/srv/ns/clonable.c

    r84dc30c r2133e02  
    9494        ipc_answer_0(callid, EOK);
    9595       
    96         ipc_forward_fast(csr->callid, phone, IPC_GET_ARG2(csr->call),
     96        ipc_forward_fast(csr->callid, phone, IPC_GET_ARG1(csr->call),
    9797            IPC_GET_ARG3(csr->call), 0, IPC_FF_NONE);
    9898       
  • uspace/srv/ns/ns.c

    r84dc30c r2133e02  
    3939#include <ipc/ns.h>
    4040#include <ipc/services.h>
     41#include <abi/ipc/interfaces.h>
    4142#include <stdio.h>
    4243#include <errno.h>
     
    7475                sysarg_t retval;
    7576               
     77                iface_t iface;
    7678                service_t service;
    7779                sysarg_t phone;
     
    8284                        break;
    8385                case IPC_M_CONNECT_TO_ME:
    84                         service = IPC_GET_ARG1(call);
     86                        iface = IPC_GET_ARG1(call);
     87                        service = IPC_GET_ARG2(call);
    8588                        phone = IPC_GET_ARG5(call);
     89                       
     90                        (void) iface;
    8691                       
    8792                        /*
     
    96101                        break;
    97102                case IPC_M_CONNECT_ME_TO:
    98                         service = IPC_GET_ARG1(call);
     103                        iface = IPC_GET_ARG1(call);
     104                        service = IPC_GET_ARG2(call);
     105                       
     106                        (void) iface;
    99107                       
    100108                        /*
  • uspace/srv/ns/service.c

    r84dc30c r2133e02  
    3939#include "service.h"
    4040#include "ns.h"
    41 
    4241
    4342/** Service hash table item. */
     
    8483        sysarg_t service;        /**< Number of the service. */
    8584        ipc_callid_t callid;     /**< Call ID waiting for the connection */
    86         sysarg_t arg2;           /**< Second argument */
     85        sysarg_t iface;          /**< Interface argument */
    8786        sysarg_t arg3;           /**< Third argument */
    8887} pending_conn_t;
     
    112111               
    113112                hashed_service_t *hs = hash_table_get_inst(link, hashed_service_t, link);
    114                 (void) ipc_forward_fast(pr->callid, hs->phone, pr->arg2,
    115                     pr->arg3, 0, IPC_FF_NONE);
     113                (void) ipc_forward_fast(pr->callid, hs->phone, pr->iface, pr->arg3, 0,
     114                    IPC_FF_NONE);
    116115               
    117116                list_remove(&pr->link);
     
    174173                        pr->service = service;
    175174                        pr->callid = callid;
    176                         pr->arg2 = IPC_GET_ARG2(*call);
     175                        pr->iface = IPC_GET_ARG1(*call);
    177176                        pr->arg3 = IPC_GET_ARG3(*call);
    178177                        list_append(&pr->link, &pending_conn);
    179178                        return;
    180179                }
     180               
    181181                retval = ENOENT;
    182182                goto out;
     
    184184       
    185185        hashed_service_t *hs = hash_table_get_inst(link, hashed_service_t, link);
    186         (void) ipc_forward_fast(callid, hs->phone, IPC_GET_ARG2(*call),
     186        (void) ipc_forward_fast(callid, hs->phone, IPC_GET_ARG1(*call),
    187187            IPC_GET_ARG3(*call), 0, IPC_FF_NONE);
    188188        return;
Note: See TracChangeset for help on using the changeset viewer.