Changes in uspace/lib/c/generic/bd_srv.c [135486d:75751db6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/bd_srv.c
r135486d r75751db6 128 128 } 129 129 130 static void bd_sync_cache_srv(bd_srv_t *srv, ipc_callid_t callid, 131 ipc_call_t *call) 132 { 133 aoff64_t ba; 134 size_t cnt; 135 int rc; 136 137 ba = MERGE_LOUP32(IPC_GET_ARG1(*call), IPC_GET_ARG2(*call)); 138 cnt = IPC_GET_ARG3(*call); 139 140 if (srv->srvs->ops->sync_cache == NULL) { 141 async_answer_0(callid, ENOTSUP); 142 return; 143 } 144 145 rc = srv->srvs->ops->sync_cache(srv, ba, cnt); 146 async_answer_0(callid, rc); 147 } 148 130 149 static void bd_write_blocks_srv(bd_srv_t *srv, ipc_callid_t callid, 131 150 ipc_call_t *call) … … 190 209 bd_srv_t *srv; 191 210 192 srv = calloc(1, sizeof( srv));211 srv = calloc(1, sizeof(bd_srv_t)); 193 212 if (srv == NULL) 194 213 return NULL; … … 244 263 bd_read_toc_srv(srv, callid, &call); 245 264 break; 265 case BD_SYNC_CACHE: 266 bd_sync_cache_srv(srv, callid, &call); 267 break; 246 268 case BD_WRITE_BLOCKS: 247 269 bd_write_blocks_srv(srv, callid, &call);
Note:
See TracChangeset
for help on using the changeset viewer.