xv6-simplified
0.1
简化版xv6
Loading...
Searching...
No Matches
src
include
fsutils.h
Go to the documentation of this file.
1
15
static
inline
uint32
first_sec_of_clus(
uint32
clusno);
22
static
inline
uint32
fat_sec_of_clus(
uint32
clusno,
uint8
fat_num);
28
static
inline
uint32
fat_offset_of_clus(
uint32
clusno);
34
static
uint32
read_fat(
uint32
clusno);
41
static
int
write_fat(
uint32
clusno,
uint32
content);
46
static
void
zero_clus(
uint32
clusno);
52
static
uint32
alloc_clus(
uint8
dev);
53
// static void free_clus(uint32 cluster);
64
static
uint
rw_clus(
uint32
clusno,
int
w
,
int
usr,
uint64
data,
uint
off,
uint
n);
72
static
int
reloc_clus(
struct
dirent
* entry,
uint
off,
int
alloc);
79
static
struct
dirent
* eget(
struct
dirent
*
parent
,
char
*
name
);
80
// static void generate_shortname(char* shortname, char* name);
81
// uint8 cal_checksum(uchar* shortname);
87
static
void
read_entry_name(
char
* buffer,
union
dentry
* d);
93
static
void
read_entry_info(
struct
dirent
* entry,
union
dentry
* d);
100
static
char
* skipelem(
char
* path,
char
*
name
);
108
static
struct
dirent
* lookup_path(
char
* path,
int
parent
,
char
*
name
);
w
uint w
Definition
console.c:50
name
char name[CHAR_SHORT_NAME]
Definition
fat32.h:0
dirent
Definition
fat32.h:31
dirent::parent
struct dirent * parent
Definition
fat32.h:46
uint32
unsigned int uint32
Definition
types.h:22
uint64
unsigned long uint64
Definition
types.h:24
uint
unsigned int uint
Definition
types.h:11
uint8
unsigned char uint8
Definition
types.h:18
dentry
Definition
fat32.h:81
Generated by
1.9.7