Changes in uspace/lib/c/generic/devmap.c [64d2b10:9476f4f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/devmap.c
r64d2b10 r9476f4f 29 29 30 30 #include <str.h> 31 #include <ipc/ipc.h> 31 32 #include <ipc/services.h> 32 #include <ipc/ns.h>33 33 #include <ipc/devmap.h> 34 34 #include <devmap.h> … … 50 50 51 51 if (flags & IPC_FLAG_BLOCKING) 52 devmap_phone_driver = service_connect_blocking(SERVICE_DEVMAP,53 DEVMAP_DRIVER, 0);52 devmap_phone_driver = ipc_connect_me_to_blocking(PHONE_NS, 53 SERVICE_DEVMAP, DEVMAP_DRIVER, 0); 54 54 else 55 devmap_phone_driver = service_connect(SERVICE_DEVMAP,56 DEVMAP_DRIVER, 0);55 devmap_phone_driver = ipc_connect_me_to(PHONE_NS, 56 SERVICE_DEVMAP, DEVMAP_DRIVER, 0); 57 57 58 58 return devmap_phone_driver; … … 62 62 63 63 if (flags & IPC_FLAG_BLOCKING) 64 devmap_phone_client = service_connect_blocking(SERVICE_DEVMAP,65 DEVMAP_CLIENT, 0);64 devmap_phone_client = ipc_connect_me_to_blocking(PHONE_NS, 65 SERVICE_DEVMAP, DEVMAP_CLIENT, 0); 66 66 else 67 devmap_phone_client = service_connect(SERVICE_DEVMAP,68 DEVMAP_CLIENT, 0);67 devmap_phone_client = ipc_connect_me_to(PHONE_NS, 68 SERVICE_DEVMAP, DEVMAP_CLIENT, 0); 69 69 70 70 return devmap_phone_client; … … 79 79 case DEVMAP_DRIVER: 80 80 if (devmap_phone_driver >= 0) { 81 async_hangup(devmap_phone_driver);81 ipc_hangup(devmap_phone_driver); 82 82 devmap_phone_driver = -1; 83 83 } … … 85 85 case DEVMAP_CLIENT: 86 86 if (devmap_phone_client >= 0) { 87 async_hangup(devmap_phone_client);87 ipc_hangup(devmap_phone_client); 88 88 devmap_phone_client = -1; 89 89 } … … 116 116 async_set_client_connection(conn); 117 117 118 async_connect_to_me(phone, 0, 0, 0, NULL); 118 sysarg_t callback_phonehash; 119 ipc_connect_to_me(phone, 0, 0, 0, &callback_phonehash); 119 120 async_wait_for(req, &retval); 120 121
Note:
See TracChangeset
for help on using the changeset viewer.