Changes in uspace/lib/c/generic/bd_srv.c [75751db6:135486d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/bd_srv.c
r75751db6 r135486d 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 149 130 static void bd_write_blocks_srv(bd_srv_t *srv, ipc_callid_t callid, 150 131 ipc_call_t *call) … … 209 190 bd_srv_t *srv; 210 191 211 srv = calloc(1, sizeof( bd_srv_t));192 srv = calloc(1, sizeof(srv)); 212 193 if (srv == NULL) 213 194 return NULL; … … 263 244 bd_read_toc_srv(srv, callid, &call); 264 245 break; 265 case BD_SYNC_CACHE:266 bd_sync_cache_srv(srv, callid, &call);267 break;268 246 case BD_WRITE_BLOCKS: 269 247 bd_write_blocks_srv(srv, callid, &call);
Note:
See TracChangeset
for help on using the changeset viewer.