Changes in uspace/srv/vfs/vfs_ipc.c [fafb8e5:beb83c1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_ipc.c
rfafb8e5 rbeb83c1 37 37 static void vfs_in_clone(ipc_call_t *req) 38 38 { 39 int oldfd = ipc_get_arg1(req);40 int newfd = ipc_get_arg2(req);41 bool desc = ipc_get_arg3(req);39 int oldfd = IPC_GET_ARG1(*req); 40 int newfd = IPC_GET_ARG2(*req); 41 bool desc = IPC_GET_ARG3(*req); 42 42 43 43 int outfd = -1; … … 48 48 static void vfs_in_fsprobe(ipc_call_t *req) 49 49 { 50 service_id_t service_id = (service_id_t) ipc_get_arg1(req);50 service_id_t service_id = (service_id_t) IPC_GET_ARG1(*req); 51 51 char *fs_name = NULL; 52 52 vfs_fs_probe_info_t info; … … 113 113 static void vfs_in_mount(ipc_call_t *req) 114 114 { 115 int mpfd = ipc_get_arg1(req);115 int mpfd = IPC_GET_ARG1(*req); 116 116 117 117 /* … … 120 120 * in the request. 121 121 */ 122 service_id_t service_id = (service_id_t) ipc_get_arg2(req);123 124 unsigned int flags = (unsigned int) ipc_get_arg3(req);125 unsigned int instance = ipc_get_arg4(req);122 service_id_t service_id = (service_id_t) IPC_GET_ARG2(*req); 123 124 unsigned int flags = (unsigned int) IPC_GET_ARG3(*req); 125 unsigned int instance = IPC_GET_ARG4(*req); 126 126 127 127 char *opts = NULL; … … 159 159 static void vfs_in_open(ipc_call_t *req) 160 160 { 161 int fd = ipc_get_arg1(req);162 int mode = ipc_get_arg2(req);161 int fd = IPC_GET_ARG1(*req); 162 int mode = IPC_GET_ARG2(*req); 163 163 164 164 errno_t rc = vfs_op_open(fd, mode); … … 168 168 static void vfs_in_put(ipc_call_t *req) 169 169 { 170 int fd = ipc_get_arg1(req);170 int fd = IPC_GET_ARG1(*req); 171 171 errno_t rc = vfs_op_put(fd); 172 172 async_answer_0(req, rc); … … 175 175 static void vfs_in_read(ipc_call_t *req) 176 176 { 177 int fd = ipc_get_arg1(req);178 aoff64_t pos = MERGE_LOUP32( ipc_get_arg2(req),179 ipc_get_arg3(req));177 int fd = IPC_GET_ARG1(*req); 178 aoff64_t pos = MERGE_LOUP32(IPC_GET_ARG2(*req), 179 IPC_GET_ARG3(*req)); 180 180 181 181 size_t bytes = 0; … … 192 192 errno_t rc; 193 193 194 basefd = ipc_get_arg1(req);194 basefd = IPC_GET_ARG1(*req); 195 195 196 196 /* Retrieve the old path. */ … … 230 230 static void vfs_in_resize(ipc_call_t *req) 231 231 { 232 int fd = ipc_get_arg1(req);233 int64_t size = MERGE_LOUP32( ipc_get_arg2(req), ipc_get_arg3(req));232 int fd = IPC_GET_ARG1(*req); 233 int64_t size = MERGE_LOUP32(IPC_GET_ARG2(*req), IPC_GET_ARG3(*req)); 234 234 errno_t rc = vfs_op_resize(fd, size); 235 235 async_answer_0(req, rc); … … 238 238 static void vfs_in_stat(ipc_call_t *req) 239 239 { 240 int fd = ipc_get_arg1(req);240 int fd = IPC_GET_ARG1(*req); 241 241 errno_t rc = vfs_op_stat(fd); 242 242 async_answer_0(req, rc); … … 245 245 static void vfs_in_statfs(ipc_call_t *req) 246 246 { 247 int fd = (int) ipc_get_arg1(req);247 int fd = (int) IPC_GET_ARG1(*req); 248 248 249 249 errno_t rc = vfs_op_statfs(fd); … … 253 253 static void vfs_in_sync(ipc_call_t *req) 254 254 { 255 int fd = ipc_get_arg1(req);255 int fd = IPC_GET_ARG1(*req); 256 256 errno_t rc = vfs_op_sync(fd); 257 257 async_answer_0(req, rc); … … 260 260 static void vfs_in_unlink(ipc_call_t *req) 261 261 { 262 int parentfd = ipc_get_arg1(req);263 int expectfd = ipc_get_arg2(req);262 int parentfd = IPC_GET_ARG1(*req); 263 int expectfd = IPC_GET_ARG2(*req); 264 264 265 265 char *path; … … 273 273 static void vfs_in_unmount(ipc_call_t *req) 274 274 { 275 int mpfd = ipc_get_arg1(req);275 int mpfd = IPC_GET_ARG1(*req); 276 276 errno_t rc = vfs_op_unmount(mpfd); 277 277 async_answer_0(req, rc); … … 280 280 static void vfs_in_wait_handle(ipc_call_t *req) 281 281 { 282 bool high_fd = ipc_get_arg1(req);282 bool high_fd = IPC_GET_ARG1(*req); 283 283 int fd = -1; 284 284 errno_t rc = vfs_op_wait_handle(high_fd, &fd); … … 292 292 * For defined flags, see <ipc/vfs.h>. 293 293 */ 294 int parentfd = ipc_get_arg1(req);295 int flags = ipc_get_arg2(req);294 int parentfd = IPC_GET_ARG1(*req); 295 int flags = IPC_GET_ARG2(*req); 296 296 297 297 int fd = 0; … … 307 307 static void vfs_in_write(ipc_call_t *req) 308 308 { 309 int fd = ipc_get_arg1(req);310 aoff64_t pos = MERGE_LOUP32( ipc_get_arg2(req),311 ipc_get_arg3(req));309 int fd = IPC_GET_ARG1(*req); 310 aoff64_t pos = MERGE_LOUP32(IPC_GET_ARG2(*req), 311 IPC_GET_ARG3(*req)); 312 312 313 313 size_t bytes = 0; … … 330 330 async_get_call(&call); 331 331 332 if (! ipc_get_imethod(&call)) {332 if (!IPC_GET_IMETHOD(call)) { 333 333 async_answer_0(&call, EOK); 334 334 break; 335 335 } 336 336 337 switch ( ipc_get_imethod(&call)) {337 switch (IPC_GET_IMETHOD(call)) { 338 338 case VFS_IN_CLONE: 339 339 vfs_in_clone(&call);
Note:
See TracChangeset
for help on using the changeset viewer.