Changeset 92413de in mainline
- Timestamp:
- 2010-02-25T21:56:24Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c16cf62
- Parents:
- 729fa2d6
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/generic/devman.c
r729fa2d6 r92413de 88 88 aid_t req = async_send_2(phone, DEVMAN_DRIVER_REGISTER, 0, 0, &answer); 89 89 90 printf("devman_driver_register (\"%s\", conn)", name);91 90 ipcarg_t retval = async_data_write_start(phone, name, str_size(name)); 92 91 if (retval != EOK) { -
uspace/srv/devman/devman.c
r729fa2d6 r92413de 43 43 */ 44 44 driver_t * create_driver() 45 { 46 printf(NAME ": create_driver\n"); 47 45 { 48 46 driver_t *res = malloc(sizeof(driver_t)); 49 47 if(res != NULL) { -
uspace/srv/devman/devman.h
r729fa2d6 r92413de 199 199 static inline void init_driver(driver_t *drv) 200 200 { 201 printf(NAME ": init_driver\n");202 201 assert(drv != NULL); 203 202 … … 210 209 static inline void clean_driver(driver_t *drv) 211 210 { 212 printf(NAME ": clean_driver\n");213 211 assert(drv != NULL); 214 212 … … 223 221 static inline void delete_driver(driver_t *drv) 224 222 { 225 printf(NAME ": delete_driver\n");226 223 assert(NULL != drv); 227 224 -
uspace/srv/devman/main.c
r729fa2d6 r92413de 101 101 } 102 102 103 char drv_name[DEVMAN_NAME_MAXLEN];103 char *drv_name = NULL; 104 104 105 105 // Get driver name 106 int rc = async_string_receive( drv_name, DEVMAN_NAME_MAXLEN, NULL);106 int rc = async_string_receive(&drv_name, DEVMAN_NAME_MAXLEN, NULL); 107 107 if (rc != EOK) { 108 108 ipc_answer_0(iid, rc); … … 113 113 // Find driver structure 114 114 driver = find_driver(&drivers_list, drv_name); 115 116 free(drv_name); 117 drv_name = NULL; 118 115 119 if (NULL == driver) { 116 120 printf(NAME ": no driver named %s was found.\n", drv_name);
Note:
See TracChangeset
for help on using the changeset viewer.