Changeset f57f8ea in mainline for uspace/srv/vfs/vfs_rdwr.c
- Timestamp:
- 2008-01-02T20:25:24Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9413c0d
- Parents:
- 215e375
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_rdwr.c
r215e375 rf57f8ea 40 40 #include <async.h> 41 41 #include <errno.h> 42 #include <futex.h> 42 43 43 44 static void vfs_rdwr(ipc_callid_t rid, ipc_call_t *request, bool read) … … 81 82 } 82 83 84 /* 85 * Lock the file's node so that no other client can read/write to it at 86 * the same time. 87 */ 88 futex_down(&file->node->contents_futex); 89 83 90 int fs_phone = vfs_grab_phone(file->node->fs_handle); 84 91 … … 109 116 110 117 /* 118 * Unlock the VFS node. 119 */ 120 futex_up(&file->node->contents_futex); 121 122 /* 111 123 * Update the position pointer. 112 124 */
Note:
See TracChangeset
for help on using the changeset viewer.