Rev 2791 | Rev 2831 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2791 | Rev 2792 | ||
---|---|---|---|
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(fs_handle_t, dev_handle_t, fs_index_t); |
73 | static void *tmpfs_node_get(dev_handle_t, fs_index_t); |
74 | static void *tmpfs_create_node(int); |
74 | static void *tmpfs_create_node(int); |
75 | static bool tmpfs_link_node(void *, void *, const char *); |
75 | static bool tmpfs_link_node(void *, void *, const char *); |
76 | static int tmpfs_unlink_node(void *, void *); |
76 | static int tmpfs_unlink_node(void *, void *); |
77 | static void tmpfs_destroy_node(void *); |
77 | static void tmpfs_destroy_node(void *); |
78 | 78 | ||
Line 264... | Line 264... | ||
264 | 264 | ||
265 | return (void *) childp; |
265 | return (void *) childp; |
266 | } |
266 | } |
267 | 267 | ||
268 | void * |
268 | void * |
269 | tmpfs_node_get(fs_handle_t fs_handle, dev_handle_t dev_handle, fs_index_t index) |
269 | tmpfs_node_get(dev_handle_t dev_handle, fs_index_t index) |
270 | { |
270 | { |
271 | unsigned long key = index; |
271 | unsigned long key = index; |
272 | link_t *lnk = hash_table_find(&dentries, &key); |
272 | link_t *lnk = hash_table_find(&dentries, &key); |
273 | if (!lnk) |
273 | if (!lnk) |
274 | return NULL; |
274 | return NULL; |