TacOS
0.2
|
Aller au code source de ce fichier.
Structures de données | |
struct | _fat_BS |
struct | _fat_extended_BIOS_16 |
struct | _fat_extended_BIOS_32 |
struct | _fat_time |
struct | _fat_date |
struct | _fat_dir_entry |
struct | lfn_entry_t |
struct | _directory_entry |
struct | _directory |
struct | _fat_info |
struct | _fat_fs_instance_t |
struct | _fat_extra_data_t |
Données supplémentaires qui sont ajoutés à l'ofd lors du open. Plus de détails... | |
struct | _fat_direntry_t |
Structure fille d'un dentry_t qui ajoute quelques données. Plus de détails... | |
Définitions de type | |
typedef struct _fat_BS | fat_BS_t |
typedef struct _fat_extended_BIOS_16 | fat_extended_BIOS_16_t |
typedef struct _fat_extended_BIOS_32 | fat_extended_BIOS_32_t |
typedef struct _fat_time | fat_time_t |
typedef struct _fat_date | fat_date_t |
typedef struct _fat_dir_entry | fat_dir_entry_t |
typedef struct _directory_entry | directory_entry_t |
typedef struct _directory | directory_t |
typedef struct _fat_info | fat_info_t |
typedef struct _fat_fs_instance_t | fat_fs_instance_t |
typedef struct _fat_extra_data_t | fat_extra_data_t |
Données supplémentaires qui sont ajoutés à l'ofd lors du open. | |
typedef struct _fat_direntry_t | fat_direntry_t |
Structure fille d'un dentry_t qui ajoute quelques données. | |
Énumérations | |
enum | fat_t { FAT12, FAT16, FAT32 } |
Fonctions | |
dentry_t * | fat_getroot (struct _fs_instance_t *instance) |
dentry_t * | fat_lookup (struct _fs_instance_t *instance, struct _dentry_t *dentry, const char *name) |
directory_t * | open_root_dir (fat_fs_instance_t *instance) |
void | read_fat (fat_fs_instance_t *instance) |
void | umount_FAT (fs_instance_t *instance) |
int | fat_readdir (open_file_descriptor *ofd, char *entries, size_t size) |
int | fat_mkdir (fs_instance_t *instance, const char *path, mode_t mode) |
int | fat_stat (fs_instance_t *instance, const char *path, struct stat *stbuf) |
int | fat_unlink (fs_instance_t *instance, const char *path) |
ssize_t | fat_read_file (open_file_descriptor *ofd, void *buf, size_t count) |
int | fat_seek_file (open_file_descriptor *ofd, long offset, int whence) |
int | fat_close (open_file_descriptor *ofd) |
int | fat_open (open_file_descriptor *ofd) |
Variables | |
struct _open_file_operations_t | fatfs_fops |
Copyright (C) 2010, 2011, 2012 - TacOS developers.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html
You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.
Description de ce que fait le fichier
typedef struct _directory_entry directory_entry_t |
Liste chaînée pour stocker les entrées d'un dossier.
typedef struct _directory directory_t |
Structure de haut niveau pour stocker les informations d'un dossier.
typedef struct _fat_date fat_date_t |
Représentation de la date au format FAT.
typedef struct _fat_dir_entry fat_dir_entry_t |
Entrée de dossier.
typedef struct _fat_extended_BIOS_16 fat_extended_BIOS_16_t |
Extended BIOS Parameter Block (FAT12 / FAT16)
typedef struct _fat_extended_BIOS_32 fat_extended_BIOS_32_t |
Extended BIOS Parameter Block (FAT 32)
typedef struct _fat_fs_instance_t fat_fs_instance_t |
Instance de FS de type FAT.
typedef struct _fat_info fat_info_t |
Structure qui contient tout ce qui est utilisé par le driver FAT.
typedef struct _fat_time fat_time_t |
Représentation du temps au format FAT.
enum fat_t |
Types de FAT.
int fat_close | ( | open_file_descriptor * | ofd | ) |
Fermeture d'un fichier ouvert.
ofd | Descripteur de fichier ouvert. |
dentry_t* fat_getroot | ( | struct _fs_instance_t * | instance | ) |
Fonction qui permet de récupérer le dentry à la racine.
instance | Instance de FS. |
dentry_t* fat_lookup | ( | struct _fs_instance_t * | instance, |
struct _dentry_t * | dentry, | ||
const char * | name | ||
) |
Fonction de lookup : retourne l'entrée de dossier qui correspond au nom demandé.
instance | Instance de FS. |
dentry | Dossier parent. |
name | Nom de l'entrée dans ce dossier. |
int fat_mkdir | ( | fs_instance_t * | instance, |
const char * | path, | ||
mode_t | mode | ||
) |
Création d'un dossier.
instance | Instance de fs. |
path | Chemin du dossier à créer. |
mode | Droits sur le dossier. |
int fat_open | ( | open_file_descriptor * | ofd | ) |
Ouverture d'un fichier. Initialise certaines données de l'ofd.
ofd | Descripteur de fichier ouvert. |
ssize_t fat_read_file | ( | open_file_descriptor * | ofd, |
void * | buf, | ||
size_t | count | ||
) |
Lecture d'un fichier.
ofd | Descripteur du fichier ouvert. |
buf | Buffer où stocker les octets lus. |
count | Nombre d'octets à lire. |
int fat_readdir | ( | open_file_descriptor * | ofd, |
char * | entries, | ||
size_t | size | ||
) |
Lecture d'un dossier.
ofd | Descripteur de fichier qui correspond au dossier. |
entries | Buffer qui va recevoir les entrées de dossier. |
size | Nombre d'octets dans le buffer au maximum. |
int fat_seek_file | ( | open_file_descriptor * | ofd, |
long | offset, | ||
int | whence | ||
) |
Déplacement dans un fichier.
ofd | Descripteur de fichier ouvert. |
offset | Décalage |
whence | depuis le debut, la fin ou en relatif. |
int fat_stat | ( | fs_instance_t * | instance, |
const char * | path, | ||
struct stat * | stbuf | ||
) |
Informations sur un fichier.
instance | Instance de fs. |
path | Chemin du fichier. |
stbuf | Structure pour enregistrer les informations. |
int fat_unlink | ( | fs_instance_t * | instance, |
const char * | path | ||
) |
Suppression d'un fichier ou dossier (vide).
instance | Instance de fs. |
path | Chemin du noeud. |
directory_t* open_root_dir | ( | fat_fs_instance_t * | instance | ) |
Ouvre le répertoire racine.
instance | Instance de FS. |
void read_fat | ( | fat_fs_instance_t * | instance | ) |
Lecture de la FAT.
instance | Instance de FS. |
void umount_FAT | ( | fs_instance_t * | instance | ) |
Démonte un FS.
instance | Instance de FS. |
struct _open_file_operations_t fatfs_fops |
Pointeurs sur les fonctions de manipulation de fichiers pour ce FS.