Rev 2858 | Rev 2958 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2858 | Rev 2863 | ||
---|---|---|---|
Line 68... | Line 68... | ||
68 | * Implementation of the libfs interface. |
68 | * Implementation of the libfs interface. |
69 | */ |
69 | */ |
70 | 70 | ||
71 | /* Forward declarations of static functions. */ |
71 | /* Forward declarations of static functions. */ |
72 | static void *tmpfs_match(void *, const char *); |
72 | static void *tmpfs_match(void *, const char *); |
73 | static void *tmpfs_node_get(dev_handle_t, fs_index_t, fs_index_t); |
73 | static void *tmpfs_node_get(dev_handle_t, fs_index_t); |
74 | static void tmpfs_node_put(void *); |
74 | static void tmpfs_node_put(void *); |
75 | static void *tmpfs_create_node(int); |
75 | static void *tmpfs_create_node(int); |
76 | static bool tmpfs_link_node(void *, void *, const char *); |
76 | static bool tmpfs_link_node(void *, void *, const char *); |
77 | static int tmpfs_unlink_node(void *, void *); |
77 | static int tmpfs_unlink_node(void *, void *); |
78 | static int tmpfs_destroy_node(void *); |
78 | static int tmpfs_destroy_node(void *); |
Line 266... | Line 266... | ||
266 | 266 | ||
267 | return (void *) childp; |
267 | return (void *) childp; |
268 | } |
268 | } |
269 | 269 | ||
270 | void * |
270 | void * |
271 | tmpfs_node_get(dev_handle_t dev_handle, fs_index_t index, fs_index_t pindex) |
271 | tmpfs_node_get(dev_handle_t dev_handle, fs_index_t index) |
272 | { |
272 | { |
273 | unsigned long key = index; |
273 | unsigned long key = index; |
274 | link_t *lnk = hash_table_find(&dentries, &key); |
274 | link_t *lnk = hash_table_find(&dentries, &key); |
275 | if (!lnk) |
275 | if (!lnk) |
276 | return NULL; |
276 | return NULL; |