Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:24:16

0001 /**
0002  * @file
0003  *
0004  * @ingroup libfs_msdos MSDOS FileSystem
0005  *
0006  * @brief Call Fat-File Close Routine
0007  */
0008 
0009 /*
0010  *  Copyright (C) 2001 OKTET Ltd., St.-Petersburg, Russia
0011  *  Author: Eugeny S. Mints <Eugeny.Mints@oktet.ru>
0012  *
0013  *  The license and distribution terms for this file may be
0014  *  found in the file LICENSE in this distribution or at
0015  *  http://www.rtems.org/license/LICENSE.
0016  */
0017 
0018 #ifdef HAVE_CONFIG_H
0019 #include "config.h"
0020 #endif
0021 
0022 #include <rtems.h>
0023 #include <rtems/libio_.h>
0024 
0025 #include <errno.h>
0026 
0027 #include "fat.h"
0028 #include "fat_fat_operations.h"
0029 #include "fat_file.h"
0030 
0031 #include "msdos.h"
0032 
0033 /* msdos_free_node_info --
0034  *     Call fat-file close routine.
0035  */
0036 void
0037 msdos_free_node_info(const rtems_filesystem_location_info_t *pathloc)
0038 {
0039     msdos_fs_info_t *fs_info = pathloc->mt_entry->fs_info;
0040 
0041     fat_file_close(&fs_info->fat, pathloc->node_access);
0042 }