Changeset c028b22 in mainline for uspace/srv/vfs/vfs_file.c
- Timestamp:
- 2011-07-08T17:01:01Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cc1a727
- Parents:
- 4e36219 (diff), 026793d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_file.c
r4e36219 rc028b22 45 45 #include "vfs.h" 46 46 47 #define VFS_DATA ((vfs_client_data_t *) async_ client_data_get())47 #define VFS_DATA ((vfs_client_data_t *) async_get_client_data()) 48 48 #define FILES (VFS_DATA->files) 49 49 … … 110 110 static int vfs_file_close_remote(vfs_file_t *file) 111 111 { 112 assert(!file->refcnt); 113 114 async_exch_t *exch = vfs_exchange_grab(file->node->fs_handle); 115 112 116 ipc_call_t answer; 113 aid_t msg; 117 aid_t msg = async_send_2(exch, VFS_OUT_CLOSE, file->node->devmap_handle, 118 file->node->index, &answer); 119 120 vfs_exchange_release(exch); 121 114 122 sysarg_t rc; 115 int phone;116 117 assert(!file->refcnt);118 119 phone = vfs_grab_phone(file->node->fs_handle);120 msg = async_send_2(phone, VFS_OUT_CLOSE, file->node->devmap_handle,121 file->node->index, &answer);122 123 async_wait_for(msg, &rc); 123 vfs_release_phone(file->node->fs_handle, phone); 124 124 125 125 return IPC_GET_ARG1(answer); 126 126 } 127 128 127 129 128 /** Increment reference count of VFS file structure.
Note:
See TracChangeset
for help on using the changeset viewer.