Changeset 2133e02 in mainline for uspace/lib/c/generic/devman.c


Ignore:
Timestamp:
2015-08-18T20:14:05Z (9 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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/devman.c

    r84dc30c r2133e02  
    8989                        if (devman_driver_block_sess == NULL)
    9090                                devman_driver_block_sess =
    91                                     service_connect_blocking(EXCHANGE_PARALLEL,
    92                                     SERVICE_DEVMAN, DEVMAN_DRIVER, 0);
     91                                    service_connect_blocking_iface(EXCHANGE_PARALLEL,
     92                                    DEVMAN_DRIVER, SERVICE_DEVMAN, 0);
    9393                }
    9494               
     
    108108                        if (devman_client_block_sess == NULL)
    109109                                devman_client_block_sess =
    110                                     service_connect_blocking(EXCHANGE_SERIALIZE,
    111                                     SERVICE_DEVMAN, DEVMAN_CLIENT, 0);
     110                                    service_connect_blocking_iface(EXCHANGE_SERIALIZE,
     111                                    DEVMAN_CLIENT, SERVICE_DEVMAN, 0);
    112112                }
    113113               
     
    138138                if (devman_driver_sess == NULL)
    139139                        devman_driver_sess =
    140                             service_connect(EXCHANGE_PARALLEL, SERVICE_DEVMAN,
    141                             DEVMAN_DRIVER, 0);
     140                            service_connect_iface(EXCHANGE_PARALLEL, DEVMAN_DRIVER,
     141                            SERVICE_DEVMAN, 0);
    142142               
    143143                fibril_mutex_unlock(&devman_driver_mutex);
     
    152152                if (devman_client_sess == NULL)
    153153                        devman_client_sess =
    154                             service_connect(EXCHANGE_SERIALIZE, SERVICE_DEVMAN,
    155                             DEVMAN_CLIENT, 0);
     154                            service_connect_iface(EXCHANGE_SERIALIZE, DEVMAN_CLIENT,
     155                            SERVICE_DEVMAN, 0);
    156156               
    157157                fibril_mutex_unlock(&devman_client_mutex);
     
    293293       
    294294        if (flags & IPC_FLAG_BLOCKING)
    295                 sess = service_connect_blocking(mgmt, SERVICE_DEVMAN,
    296                             DEVMAN_CONNECT_TO_DEVICE, handle);
     295                sess = service_connect_blocking_iface(mgmt, DEVMAN_CONNECT_TO_DEVICE,
     296                    SERVICE_DEVMAN, handle);
    297297        else
    298                 sess = service_connect(mgmt, SERVICE_DEVMAN,
    299                             DEVMAN_CONNECT_TO_DEVICE, handle);
     298                sess = service_connect_iface(mgmt, DEVMAN_CONNECT_TO_DEVICE,
     299                    SERVICE_DEVMAN, handle);
    300300       
    301301        return sess;
     
    351351       
    352352        if (flags & IPC_FLAG_BLOCKING)
    353                 sess = service_connect_blocking(mgmt, SERVICE_DEVMAN,
    354                             DEVMAN_CONNECT_TO_PARENTS_DEVICE, handle);
     353                sess = service_connect_blocking_iface(mgmt,
     354                            DEVMAN_CONNECT_TO_PARENTS_DEVICE, SERVICE_DEVMAN, handle);
    355355        else
    356                 sess = service_connect(mgmt, SERVICE_DEVMAN,
    357                             DEVMAN_CONNECT_TO_PARENTS_DEVICE, handle);
     356                sess = service_connect_iface(mgmt,
     357                            DEVMAN_CONNECT_TO_PARENTS_DEVICE, SERVICE_DEVMAN, handle);
    358358       
    359359        return sess;
Note: See TracChangeset for help on using the changeset viewer.