Changeset adb5fe3 in mainline for uspace/srv/fs/tmpfs/tmpfs_ops.c
- Timestamp:
- 2008-11-09T21:24:59Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b24786a
- Parents:
- 9a3d5f0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/tmpfs/tmpfs_ops.c
r9a3d5f0 radb5fe3 65 65 static tmpfs_dentry_t *root; 66 66 67 #define TMPFS_DEV 0 /**< Dummy device handle for TMPFS */ 68 67 69 /* 68 70 * Implementation of the libfs interface. … … 73 75 static void *tmpfs_node_get(dev_handle_t, fs_index_t); 74 76 static void tmpfs_node_put(void *); 75 static void *tmpfs_create_node( int);77 static void *tmpfs_create_node(dev_handle_t, int); 76 78 static bool tmpfs_link_node(void *, void *, const char *); 77 79 static int tmpfs_unlink_node(void *, void *); … … 229 231 if (!hash_table_create(&dentries, DENTRIES_BUCKETS, 1, &dentries_ops)) 230 232 return false; 231 root = (tmpfs_dentry_t *) tmpfs_create_node( L_DIRECTORY);233 root = (tmpfs_dentry_t *) tmpfs_create_node(TMPFS_DEV, L_DIRECTORY); 232 234 if (!root) { 233 235 hash_table_destroy(&dentries); … … 283 285 } 284 286 285 void *tmpfs_create_node( int lflag)287 void *tmpfs_create_node(dev_handle_t dev_handle, int lflag) 286 288 { 287 289 assert((lflag & L_FILE) ^ (lflag & L_DIRECTORY));
Note:
See TracChangeset
for help on using the changeset viewer.