Changeset ff20afc in mainline for uspace/srv/sysman/connection_ctl.c
- Timestamp:
- 2019-08-17T13:12:47Z (7 years ago)
- Children:
- 5a88d87
- Parents:
- d5cca04
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-12-04 13:56:42)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-17 13:12:47)
- File:
-
- 1 edited
-
uspace/srv/sysman/connection_ctl.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/sysman/connection_ctl.c
rd5cca04 rff20afc 76 76 } 77 77 78 // TODO this is connection fibril, UNSYNCHRONIZED access to units!79 78 unit_t *unit = repo_find_unit_by_name(unit_name); 80 79 if (unit == NULL) { … … 107 106 sysman_log(LVL_DEBUG2, "%s(%s, %x)", __func__, unit_name, flags); 108 107 109 // TODO this is connection fibril, UNSYNCHRONIZED access to units!110 108 unit_t *unit = repo_find_unit_by_name(unit_name); 111 109 if (unit == NULL) { … … 148 146 sysman_log(LVL_DEBUG2, "%s(%i, %x)", __func__, handle, flags); 149 147 150 // TODO this is connection fibril, UNSYNCHRONIZED access to units!151 148 unit_t *unit = repo_find_unit_by_handle(handle); 152 149 if (unit == NULL) { … … 188 185 size_t to_fill = size / sizeof(unit_handle_t); 189 186 size_t total = 0; 187 repo_rlock(); 190 188 list_foreach(units, units, unit_t, u) { 191 189 if (filled < to_fill) { … … 194 192 ++total; 195 193 } 194 repo_runlock(); 196 195 *act_size = total * sizeof(unit_handle_t); 197 196 return EOK; … … 220 219 221 220 222 // TODO UNSYNCHRONIZED access to units!223 221 rc = fill_handles_buffer(handles, size, &act_size); 224 222 if (rc != EOK) { … … 246 244 } 247 245 248 // TODO UNSYNCHRONIZED access to units!249 246 unit_t *u = repo_find_unit_by_handle(IPC_GET_ARG1(*icall)); 250 247 if (u == NULL) { … … 262 259 static void sysman_unit_get_state(ipc_callid_t iid, ipc_call_t *icall) 263 260 { 264 // TODO UNSYNCHRONIZED access to units!265 261 unit_t *u = repo_find_unit_by_handle(IPC_GET_ARG1(*icall)); 266 262 if (u == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.
