Changeset 63a3276 in mainline for uspace/srv/devman/drv_conn.c
- Timestamp:
- 2019-08-06T19:20:35Z (5 years ago)
- Children:
- 3f05ef7
- Parents:
- 72c8f77
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-06-17 23:02:03)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-06 19:20:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/drv_conn.c
r72c8f77 r63a3276 36 36 37 37 #include <assert.h> 38 #include <async.h> 39 #include <errno.h> 40 #include <fibril_synch.h> 41 #include <io/log.h> 42 #include <ipc/devman.h> 43 #include <ipc/driver.h> 38 44 #include <ipc/services.h> 45 #include <loc.h> 39 46 #include <ns.h> 40 #include < async.h>47 #include <stdbool.h> 41 48 #include <stdio.h> 42 #include <errno.h>43 #include <str_error.h>44 #include <stdbool.h>45 #include <fibril_synch.h>46 49 #include <stdlib.h> 47 50 #include <str.h> 48 #include <io/log.h> 49 #include <ipc/devman.h> 50 #include <loc.h> 51 #include <str_error.h> 52 #include <sysman/broker.h> 51 53 52 54 #include "client_conn.h" … … 67 69 driver_t *driver = NULL; 68 70 char *drv_name = NULL; 71 char *unit_name = NULL; 69 72 70 73 log_msg(LOG_DEFAULT, LVL_DEBUG, "devman_driver_register"); … … 104 107 } 105 108 109 /* Notify sysman about started driver */ 110 rc = driver_unit_name(driver, &unit_name); 111 if (rc != EOK) { 112 fibril_mutex_unlock(&driver->driver_mutex); 113 async_answer_0(callid, rc); 114 return NULL; 115 } 116 sysman_main_exposee_added(unit_name, call->in_task_id); 117 free(unit_name); 118 106 119 switch (driver->state) { 107 120 case DRIVER_NOT_STARTED:
Note:
See TracChangeset
for help on using the changeset viewer.