#include "src/common/shared.hpp"#include "src/memory/memset.hpp"#include "src/memory/align.hpp"#include "src/memory/heap.hpp"#include "src/ata.hpp"#include "src/fat.hpp"Idź do kodu źródłowego tego pliku.
Definicje | |
| #define | fs_lseek(ptr, l, i) do { source=l; } while (0) |
Funkcje | |
| uint32 | fs_read (uint32 *ptr, char *buf, int count) |
| uint32 | block_read (uint32 *source, char *buf, uint32 offset, uint32 count) |
| void | sub2 () |
| char * | kmalloc (uint32 size) |
| void | kfree (void *ptr) |
| uint32 | fat_probe (uint32 arg) |
| int | fat_lseek (struct file_handle_t *file, sint64 count, int whence) |
| int | fat_read (struct file_handle_t *file, char *buff, int nbytes) |
| int | fat_write (struct file_handle_t *file, char *buff, int nbytes) |
| int | fat_readdir (struct file_handle_t *file, struct dirent *entry, int n) |
| int | fat_open (struct file_handle_t *file) |
| int | fat_close (struct file_handle_t *file) |
Zmienne | |
| const uint32 | FA_DIR = 0x0001 |
| const uint32 | FA_RO = 0x0002 |
| const uint32 | FA_NON_DIR = 0x0000 |
| const uint32 | FA_RW = 0x0000 |
| const int | ESKIP = -0x0003 |
| const int | ENOTIMPLEMENTED = -0x0004 |
| const int | EPROTECTED = -0x0005 |
| const int | ENOTFOUND = -0x0002 |
| const uint32 | DEF_ERROR = EINVAL |
| const uint32 | SEEK_SET = 0 |
| uint8 | FAT_DIRENT_ILLEGAL [] |
| #define fs_lseek | ( | ptr, | |||
| l, | |||||
| i | ) | do { source=l; } while (0) |
| int fat_lseek | ( | struct file_handle_t * | file, | |
| sint64 | count, | |||
| int | whence | |||
| ) |
| int fat_read | ( | struct file_handle_t * | file, | |
| char * | buff, | |||
| int | nbytes | |||
| ) |
| int fat_readdir | ( | struct file_handle_t * | file, | |
| struct dirent * | entry, | |||
| int | n | |||
| ) |
| int fat_write | ( | struct file_handle_t * | file, | |
| char * | buff, | |||
| int | nbytes | |||
| ) |
Definicja w linii 33 pliku fat.cpp.
Odwołuje się do ATA_PRIMARY, ATAReadSector() i ESUCCESS.
Odwołania w block_read() i fat_t::verify().
| char* kmalloc | ( | uint32 | size | ) | [inline] |
| void sub2 | ( | ) |
| const int ENOTFOUND = -0x0002 |
| const int ENOTIMPLEMENTED = -0x0004 |
| const int EPROTECTED = -0x0005 |
| const int ESKIP = -0x0003 |
| const uint32 FA_NON_DIR = 0x0000 |
1.5.6