xv6-simplified 0.1
简化版xv6
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
fat32.h File Reference

fat相关数据结构 More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dirent
 
struct  short_name_entry
 
struct  long_name_entry
 
union  dentry
 

Macros

#define ATTR_READ_ONLY   0x01
 
#define ATTR_HIDDEN   0x02
 
#define ATTR_SYSTEM   0x04
 
#define ATTR_VOLUME_ID   0x08
 
#define ATTR_DIRECTORY   0x10
 
#define ATTR_ARCHIVE   0x20
 
#define ATTR_LONG_NAME   0x0F
 
#define LAST_LONG_ENTRY   0x40
 
#define FAT32_EOC   0x0ffffff8
 
#define EMPTY_ENTRY   0xe5
 
#define END_OF_ENTRY   0x00
 
#define CHAR_LONG_NAME   13
 
#define CHAR_SHORT_NAME   11
 
#define FAT32_MAX_FILENAME   255
 
#define FAT32_MAX_PATH   260
 
#define ENTRY_CACHE_NUM   50
 

Functions

struct short_name_entry __attribute__ ((packed, aligned(4))) SHORT_NAME_ENTRY
 

Variables

char name [CHAR_SHORT_NAME]
 
uint8 attr
 
uint8 _reserve
 
uint8 _ctime_tenth
 
uint16 _ctime
 
uint16 _cdate
 
uint16 _lst_adate
 
uint16 fst_clus_hi
 
uint16 _lst_mtime
 
uint16 _lst_mdate
 
uint16 fst_clus_lo
 
uint32 file_size
 
uint8 order
 
uint16 name1 [5]
 
uint8 checksum
 
uint16 name2 [6]
 
uint16 _fst_clus_lo
 
uint16 name3 [2]
 
union dentry __attribute__
 

Detailed Description

fat相关数据结构

Date
23.5.26
Author
yrz
Version
0.1 @status Stable

Macro Definition Documentation

◆ ATTR_ARCHIVE

#define ATTR_ARCHIVE   0x20

◆ ATTR_DIRECTORY

#define ATTR_DIRECTORY   0x10

◆ ATTR_HIDDEN

#define ATTR_HIDDEN   0x02

◆ ATTR_LONG_NAME

#define ATTR_LONG_NAME   0x0F

◆ ATTR_READ_ONLY

#define ATTR_READ_ONLY   0x01

◆ ATTR_SYSTEM

#define ATTR_SYSTEM   0x04

◆ ATTR_VOLUME_ID

#define ATTR_VOLUME_ID   0x08

◆ CHAR_LONG_NAME

#define CHAR_LONG_NAME   13

◆ CHAR_SHORT_NAME

#define CHAR_SHORT_NAME   11

◆ EMPTY_ENTRY

#define EMPTY_ENTRY   0xe5

◆ END_OF_ENTRY

#define END_OF_ENTRY   0x00

◆ ENTRY_CACHE_NUM

#define ENTRY_CACHE_NUM   50

◆ FAT32_EOC

#define FAT32_EOC   0x0ffffff8

◆ FAT32_MAX_FILENAME

#define FAT32_MAX_FILENAME   255

◆ FAT32_MAX_PATH

#define FAT32_MAX_PATH   260

◆ LAST_LONG_ENTRY

#define LAST_LONG_ENTRY   0x40

Function Documentation

◆ __attribute__()

struct short_name_entry __attribute__ ( (packed, aligned(4))  )

Variable Documentation

◆ __attribute__

struct long_name_entry __attribute__

◆ _cdate

uint16 _cdate

◆ _ctime

uint16 _ctime

◆ _ctime_tenth

uint8 _ctime_tenth

◆ _fst_clus_lo

uint16 _fst_clus_lo

◆ _lst_adate

uint16 _lst_adate

◆ _lst_mdate

uint16 _lst_mdate

◆ _lst_mtime

uint16 _lst_mtime

◆ _reserve

uint8 _reserve

◆ attr

uint8 attr

◆ checksum

uint8 checksum

◆ file_size

uint32 file_size

◆ fst_clus_hi

uint16 fst_clus_hi

◆ fst_clus_lo

uint16 fst_clus_lo

◆ name

char name[CHAR_SHORT_NAME]

◆ name1

uint16 name1[5]

◆ name2

uint16 name2[6]

◆ name3

uint16 name3[2]

◆ order

uint8 order