Ignore:
Timestamp:
Jul 1, 2010, 2:10:54 PM (10 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.10
Children:
615d8cc
Parents:
f33be44
Message:

2010-06-07 Sebastian Huber <sebastian.huber@…>

  • libcsupport/include/rtems/libio_.h: Declare rtems_filesystem_mount_table_control.
  • libcsupport/include/rtems/libio.h: Removed rtems_filesystem_table_first(), rtems_filesystem_table_next() and rtems_filesystem_table_node_t declarations. Declare rtems_per_filesystem_routine, rtems_filesystem_iterate() and rtems_filesystem_get_mount_handler().
  • libcsupport/src/mount.c: Added rtems_filesystem_mounts_first() and rtems_filesystem_mounts_next(). Simplify mount(). Removed rtems_filesystem_mount_table_control_init. Use rtems_filesystem_get_mount_handler().
  • libcsupport/src/mount-mgr.c: Removed rtems_filesystem_mounts_first() and rtems_filesystem_mounts_next(). Added rtems_filesystem_iterate() and rtems_filesystem_get_mount_handler(). Use rtems_libio_lock() and rtems_libio_unlock();
  • sapi/include/confdefs.h, libmisc/shell/main_mount.c: Update for mount API changes.

2010-06-07 Bharath Suri <bharath.s.jois@…>

  • libcsupport/include/rtems/libio_.h: Removed macros rtems_filesystem_is_separator rtems_filesystem_get_start_loc rtems_filesystem_get_sym_start_loc and added them as files under libcsupport/src/
  • libcsupport/src/: Added new files libcsupport/src/sup_fs_get_start_loc.c libcsupport/src/sup_fs_get_sym_start_loc.c libcsupport/src/sup_fs_is_separator.c
  • libcsupport/Makefile.am: Changes to accommodate new files under libcsupport/src/
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/rtems/libio.h

    rf33be44 r00bf6744  
    290290};
    291291
    292 /*
    293  * File system table used by mount to manage file systems.
     292/**
     293 * @brief File system table entry.
    294294 */
    295295typedef struct rtems_filesystem_table_t {
     
    298298} rtems_filesystem_table_t;
    299299
    300 /*
    301  * File system table runtime loaded nodes.
    302  */
    303 typedef struct rtems_filesystem_table_node_t {
    304   rtems_chain_node         node;
    305   rtems_filesystem_table_t entry;
    306 } rtems_filesystem_table_node_t;
    307 
    308 /*
    309  * Get the first entry in the filesystem table.
    310  */
    311 const rtems_filesystem_table_t* rtems_filesystem_table_first( void );
    312 
    313 /*
    314  * Get the next entry in the file system table.
    315  */
    316 const rtems_filesystem_table_t*
    317 rtems_filesystem_table_next( const rtems_filesystem_table_t *entry );
     300/**
     301 * @brief Static table of file systems.
     302 *
     303 * Externally defined by confdefs.h or the user.
     304 */
     305extern const rtems_filesystem_table_t rtems_filesystem_table [];
     306
     307/**
     308 * @brief Per file system table entry routine type.
     309 *
     310 * Return @c true to continue the iteration, and @c false to stop.
     311 */
     312typedef bool (*rtems_per_filesystem_routine)(
     313  const rtems_filesystem_table_t *entry,
     314  void *arg
     315);
     316
     317/**
     318 * @brief Iterates over the file system table.
     319 *
     320 * For each file system table entry the @a routine will be called with the
     321 * table entry and the @a routine_arg parameter.
     322 */
     323void
     324rtems_filesystem_iterate(
     325  rtems_per_filesystem_routine routine,
     326  void *routine_arg
     327);
     328
     329/**
     330 * @brief Returns the file system mount handler associated with the @a type, or
     331 * @c NULL if no such association exists.
     332 */
     333rtems_filesystem_fsmount_me_t
     334rtems_filesystem_get_mount_handler(
     335  const char *type
     336);
    318337
    319338/*
Note: See TracChangeset for help on using the changeset viewer.