Changeset e2ab36f1 in mainline for uspace/srv/vfs
- Timestamp:
- 2011-08-19T12:38:09Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 36b16bc, 9247c02c
- Parents:
- 903bac0a
- Location:
- uspace/srv/vfs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs.c
r903bac0a re2ab36f1 36 36 */ 37 37 38 #include <vfs/vfs.h> 38 39 #include <ipc/services.h> 39 40 #include <abi/ipc/event.h> … … 47 48 #include <as.h> 48 49 #include <atomic.h> 49 #include < vfs/vfs.h>50 #include <macros.h> 50 51 #include "vfs.h" 51 52 … … 143 144 case VFS_TASK_STATE_CHANGE: 144 145 if (IPC_GET_ARG1(*call) == VFS_PASS_HANDLE) 145 vfs_pass_handle(IPC_GET_ARG4(*call), 146 IPC_GET_ARG5(*call), (int) IPC_GET_ARG2(*call)); 146 vfs_pass_handle( 147 (task_id_t) MERGE_LOUP32(IPC_GET_ARG4(*call), 148 IPC_GET_ARG5(*call)), call->in_task_id, 149 (int) IPC_GET_ARG2(*call)); 147 150 break; 148 151 default: -
uspace/srv/vfs/vfs.h
r903bac0a re2ab36f1 41 41 #include <bool.h> 42 42 #include <ipc/vfs.h> 43 #include <task.h> 43 44 44 45 #ifndef dprintf … … 188 189 extern void vfs_client_data_destroy(void *); 189 190 190 extern void vfs_pass_handle( sysarg_t, sysarg_t, int);191 extern void vfs_pass_handle(task_id_t, task_id_t, int); 191 192 extern int vfs_wait_handle_internal(void); 192 193 -
uspace/srv/vfs/vfs_file.c
r903bac0a re2ab36f1 44 44 #include <fibril_synch.h> 45 45 #include <adt/list.h> 46 #include <task.h> 46 47 #include "vfs.h" 47 48 … … 346 347 } 347 348 348 void vfs_pass_handle( sysarg_t donor_hash, sysarg_t acceptor_hash, int donor_fd)349 void vfs_pass_handle(task_id_t donor_id, task_id_t acceptor_id, int donor_fd) 349 350 { 350 351 vfs_client_data_t *donor_data = NULL; … … 355 356 int acceptor_fd; 356 357 357 acceptor_data = async_get_client_data_by_ hash(acceptor_hash);358 acceptor_data = async_get_client_data_by_id(acceptor_id); 358 359 if (!acceptor_data) 359 360 return; … … 365 366 bh->handle = -1; 366 367 367 donor_data = async_get_client_data_by_ hash(donor_hash);368 donor_data = async_get_client_data_by_id(donor_id); 368 369 if (!donor_data) 369 370 goto out; … … 402 403 403 404 if (donor_data) 404 async_put_client_data_by_ hash(donor_hash);405 async_put_client_data_by_id(donor_id); 405 406 if (acceptor_data) 406 async_put_client_data_by_ hash(acceptor_hash);407 async_put_client_data_by_id(acceptor_id); 407 408 if (donor_file) 408 409 _vfs_file_put(donor_data, donor_file);
Note:
See TracChangeset
for help on using the changeset viewer.