Changeset 508b0df1 in mainline for uspace/srv/vfs/vfs_register.c
- Timestamp:
- 2018-09-06T20:21:52Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 78de83de, fc10e1b
- Parents:
- 4621d23
- git-author:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-08-13 03:53:39)
- git-committer:
- Jiří Zárevúcky <jiri.zarevucky@…> (2018-09-06 20:21:52)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/vfs/vfs_register.c
r4621d23 r508b0df1 49 49 #include <as.h> 50 50 #include <assert.h> 51 #include < atomic.h>51 #include <stdatomic.h> 52 52 #include <vfs/vfs.h> 53 53 #include "vfs.h" … … 57 57 LIST_INITIALIZE(fs_list); 58 58 59 atomic_t fs_handle_next = { 60 .count = 1 61 }; 59 static atomic_int fs_handle_next = 1; 62 60 63 61 /** Verify the VFS info structure. … … 236 234 * system a global file system handle. 237 235 */ 238 fs_info->fs_handle = (fs_handle_t) atomic_postinc(&fs_handle_next);236 fs_info->fs_handle = atomic_fetch_add(&fs_handle_next, 1); 239 237 async_answer_1(req, EOK, (sysarg_t) fs_info->fs_handle); 240 238
Note:
See TracChangeset
for help on using the changeset viewer.