Changeset 124c061 in mainline for uspace/srv


Ignore:
Timestamp:
2011-01-23T23:47:58Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
11bb813
Parents:
fdb9982c
Message:

ipc_connect_to_me() now takes one extra argument to store the client task hash.

Location:
uspace/srv
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/clip/clip.c

    rfdb9982c r124c061  
    183183        async_set_client_connection(clip_connection);
    184184       
    185         sysarg_t phonead;
    186         if (ipc_connect_to_me(PHONE_NS, SERVICE_CLIPBOARD, 0, 0, &phonead) != 0)
     185        if (ipc_connect_to_me(PHONE_NS, SERVICE_CLIPBOARD, 0, 0, NULL, NULL))
    187186                return -1;
    188187       
  • uspace/srv/devman/main.c

    rfdb9982c r124c061  
    586586
    587587        /* Register device manager at naming service. */
    588         sysarg_t phonead;
    589         if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAN, 0, 0, &phonead) != 0)
     588        if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAN, 0, 0, NULL, NULL) != 0)
    590589                return -1;
    591590
  • uspace/srv/devmap/devmap.c

    rfdb9982c r124c061  
    11501150       
    11511151        /* Register device mapper at naming service */
    1152         sysarg_t phonead;
    1153         if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAP, 0, 0, &phonead) != 0)
     1152        if (ipc_connect_to_me(PHONE_NS, SERVICE_DEVMAP, 0, 0, NULL, NULL) != 0)
    11541153                return -1;
    11551154       
  • uspace/srv/hid/adb_mouse/adb_dev.c

    rfdb9982c r124c061  
    6969        /* NB: The callback connection is slotted for removal */
    7070        sysarg_t phonehash;
    71         if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {
     71        if (ipc_connect_to_me(dev_phone, 0, 0, 0, NULL, &phonehash) != 0) {
    7272                printf(NAME ": Failed to create callback from device\n");
    7373                return false;
  • uspace/srv/hid/char_mouse/chardev.c

    rfdb9982c r124c061  
    7171        /* NB: The callback connection is slotted for removal */
    7272        sysarg_t phonehash;
    73         if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {
     73        if (ipc_connect_to_me(dev_phone, 0, 0, 0, NULL, &phonehash) != 0) {
    7474                printf(NAME ": Failed to create callback from device\n");
    7575                return false;
  • uspace/srv/hid/console/console.c

    rfdb9982c r124c061  
    727727        /* NB: The callback connection is slotted for removal */
    728728        sysarg_t phonehash;
    729         if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) {
     729        if (ipc_connect_to_me(kbd_phone, SERVICE_CONSOLE, 0, 0, NULL,
     730            &phonehash) != 0) {
    730731                printf(NAME ": Failed to create callback from input device\n");
    731732                return false;
     
    749750        }
    750751       
    751         if (ipc_connect_to_me(mouse_phone, SERVICE_CONSOLE, 0, 0, &phonehash) != 0) {
     752        if (ipc_connect_to_me(mouse_phone, SERVICE_CONSOLE, 0, 0, NULL,
     753            &phonehash) != 0) {
    752754                printf(NAME ": Failed to create callback from mouse device\n");
    753755                mouse_phone = -1;
  • uspace/srv/hid/fb/main.c

    rfdb9982c r124c061  
    114114                return -1;
    115115       
    116         sysarg_t phonead;
    117         if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, 0, &phonead) != 0)
     116        if (ipc_connect_to_me(PHONE_NS, SERVICE_VIDEO, 0, 0, NULL, NULL) != 0)
    118117                return -1;
    119118       
  • uspace/srv/hid/kbd/port/adb.c

    rfdb9982c r124c061  
    7272        /* NB: The callback connection is slotted for removal */
    7373        sysarg_t phonehash;
    74         if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {
     74        if (ipc_connect_to_me(dev_phone, 0, 0, 0, NULL, &phonehash) != 0) {
    7575                printf(NAME ": Failed to create callback from device\n");
    7676                return false;
  • uspace/srv/hid/kbd/port/chardev.c

    rfdb9982c r124c061  
    9292        /* NB: The callback connection is slotted for removal */
    9393        sysarg_t phonehash;
    94         if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) {
     94        if (ipc_connect_to_me(dev_phone, 0, 0, 0, NULL, &phonehash) != 0) {
    9595                printf(NAME ": Failed to create callback from device\n");
    9696                return -1;
  • uspace/srv/hw/irc/apic/apic.c

    rfdb9982c r124c061  
    108108       
    109109        async_set_client_connection(apic_connection);
    110         sysarg_t phonead;
    111         ipc_connect_to_me(PHONE_NS, SERVICE_APIC, 0, 0, &phonead);
     110        ipc_connect_to_me(PHONE_NS, SERVICE_APIC, 0, 0, NULL, NULL);
    112111       
    113112        return true;
  • uspace/srv/hw/irc/fhc/fhc.c

    rfdb9982c r124c061  
    137137       
    138138        async_set_client_connection(fhc_connection);
    139         sysarg_t phonead;
    140         ipc_connect_to_me(PHONE_NS, SERVICE_FHC, 0, 0, &phonead);
     139        ipc_connect_to_me(PHONE_NS, SERVICE_FHC, 0, 0, NULL, NULL);
    141140       
    142141        return true;
  • uspace/srv/hw/irc/i8259/i8259.c

    rfdb9982c r124c061  
    150150       
    151151        async_set_client_connection(i8259_connection);
    152         sysarg_t phonead;
    153         ipc_connect_to_me(PHONE_NS, SERVICE_I8259, 0, 0, &phonead);
     152        ipc_connect_to_me(PHONE_NS, SERVICE_I8259, 0, 0, NULL, NULL);
    154153       
    155154        return true;
  • uspace/srv/hw/irc/obio/obio.c

    rfdb9982c r124c061  
    138138       
    139139        async_set_client_connection(obio_connection);
    140         sysarg_t phonead;
    141         ipc_connect_to_me(PHONE_NS, SERVICE_OBIO, 0, 0, &phonead);
     140        ipc_connect_to_me(PHONE_NS, SERVICE_OBIO, 0, 0, NULL, NULL);
    142141       
    143142        return true;
  • uspace/srv/hw/netif/ne2000/ne2000.c

    rfdb9982c r124c061  
    397397        async_set_interrupt_received(irq_handler);
    398398       
    399         sysarg_t phonehash;
    400         return ipc_connect_to_me(PHONE_NS, SERVICE_NE2000, 0, 0, &phonehash);
     399        return ipc_connect_to_me(PHONE_NS, SERVICE_NE2000, 0, 0, NULL, NULL);
    401400}
    402401
  • uspace/srv/loader/main.c

    rfdb9982c r124c061  
    423423int main(int argc, char *argv[])
    424424{
    425         sysarg_t phonead;
    426425        task_id_t id;
    427426        int rc;
     
    439438       
    440439        /* Register at naming service. */
    441         if (ipc_connect_to_me(PHONE_NS, SERVICE_LOAD, 0, 0, &phonead) != 0)
     440        if (ipc_connect_to_me(PHONE_NS, SERVICE_LOAD, 0, 0, NULL, NULL) != 0)
    442441                return -2;
    443442
  • uspace/srv/net/net/net.c

    rfdb9982c r124c061  
    326326static int net_module_start(async_client_conn_t client_connection)
    327327{
    328         sysarg_t phonehash;
    329328        int rc;
    330329       
     
    338337                goto out;
    339338       
    340         rc = ipc_connect_to_me(PHONE_NS, SERVICE_NETWORKING, 0, 0, &phonehash);
     339        rc = ipc_connect_to_me(PHONE_NS, SERVICE_NETWORKING, 0, 0, NULL, NULL);
    341340        if (rc != EOK)
    342341                goto out;
  • uspace/srv/net/netif/lo/lo.c

    rfdb9982c r124c061  
    167167int netif_initialize(void)
    168168{
    169         sysarg_t phonehash;
    170         return ipc_connect_to_me(PHONE_NS, SERVICE_LO, 0, 0, &phonehash);
     169        return ipc_connect_to_me(PHONE_NS, SERVICE_LO, 0, 0, NULL, NULL);
    171170}
    172171
  • uspace/srv/vfs/vfs.c

    rfdb9982c r124c061  
    173173         * Register at the naming service.
    174174         */
    175         sysarg_t phonead;
    176         ipc_connect_to_me(PHONE_NS, SERVICE_VFS, 0, 0, &phonead);
     175        ipc_connect_to_me(PHONE_NS, SERVICE_VFS, 0, 0, NULL, NULL);
    177176       
    178177        /*
Note: See TracChangeset for help on using the changeset viewer.