/tmp/l4check/full_tree/trunk/l4/pkg/l4vfs/include/tree_helper.h File Reference

#include <l4/l4vfs/types.h>

Go to the source code of this file.

Classes

struct  l4vfs_th_node_s

Typedefs

typedef struct l4vfs_th_node_s l4vfs_th_node_t

Enumerations

enum  object_type_e { L4VFS_TH_TYPE_OBJECT, L4VFS_TH_TYPE_DIRECTORY }

Functions

EXTERN_C_BEGIN l4vfs_th_node_t * l4vfs_th_new_node (const char *name, int type, l4vfs_th_node_t *parent, void *data)
int l4vfs_th_destroy_child (l4vfs_th_node_t *parent, l4vfs_th_node_t *child)
int l4vfs_th_free_node (l4vfs_th_node_t *node)
l4vfs_th_node_t * l4vfs_th_child_for_name (l4vfs_th_node_t *parent, const char *name)
l4vfs_th_node_t * l4vfs_th_node_for_id (local_object_id_t id)
local_object_id_t l4vfs_th_resolve (local_object_id_t base, const char *name)
local_object_id_t l4vfs_th_local_resolve (local_object_id_t base, const char *name)
char * l4vfs_th_rev_resolve (local_object_id_t base, local_object_id_t *parent)
void l4vfs_th_init (void)
void l4vfs_th_dir_to_dirent (const l4vfs_th_node_t *node, l4vfs_dirent_t *entry)
int l4vfs_th_dir_dirent_size (const l4vfs_th_node_t *node)
int l4vfs_th_dir_fill_dirents (const l4vfs_th_node_t *node, int index, l4vfs_dirent_t *entry, int *length)
 Convert parts of a directory node to a dirent buffer.
int l4vfs_th_is_absolute_path (const char *path)
char * l4vfs_th_get_first_path (const char *name)
char * l4vfs_th_get_remainder_path (const char *name)


Detailed Description

Date:
10/25/2004
Author:
Martin Pohlack <mp26@os.inf.tu-dresden.de>

Function Documentation

int l4vfs_th_dir_fill_dirents ( const l4vfs_th_node_t *  node,
int  index,
l4vfs_dirent_t *  entry,
int *  length 
)

Convert parts of a directory node to a dirent buffer.

Parameters:
node tree node to operate on (should be a directory)
index file number to begin with conversion (0 = '.', 1 = '..', 2 = '[first file]', ...)
entry pointer to memory buffer to fill
Return values:
length [in] size of entry in bytes
  • [out] number bytes written to entry (should be <= [in])
  • -1 in case of 0 bytes could be written
Returns:
index to operate on with the next call
  • -1 in case an invalid node is given


Generated on Wed Apr 11 06:39:33 2012 for L4 Virtual File System by  doxygen 1.5.6