The rtems_filesystem_location_info_t
structure contains all information
necessary for identification of a node.
The generic rtems filesystem code defines two global
rtems_filesystem_location_info_t structures, the
rtems_filesystem_root
and the rtems_filesystem_current
.
Both are initially defined to be the root node of the base filesystem.
Once the chdir command is correctly used the rtems_filesystem_current
is set to the location specified by the command.
The filesystem generic code peeks at the first character in the name to be
evaluated. If this character is a valid seperator, the
rtems_filesystem_root
is used as the node to start the evaluation
with. Otherwise, the rtems_filesystem_current
node is used as the
node to start evaluating with. Therefore, a valid
rtems_filesystem_location_info_t is given to the evaluate routine to start
evaluation with. The evaluate routines are then responsible for making
any changes necessary to this structure to correspond to the name being
parsed.
struct rtems_filesystem_location_info_tt { void *node_access; rtems_filesystem_file_handlers_r *handlers; rtems_filesystem_operations_table *ops; rtems_filesystem_mount_table_entry_t *mt_entry; };
Copyright © 1988-2003 OAR Corporation