Changes between Version 25 and Version 26 of file_system
- Timestamp:
- Aug 26, 2015, 10:41:28 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
file_system
v25 v26 114 114 * GIET_FAT32_NOT_OPEN 115 115 116 === __int '''_fat_read'''( unsigned int fd_id , void* buffer , unsigned int count)__ ===116 === __int '''_fat_read'''( unsigned int fd_id , paddr_t buffer , unsigned int count, unsigned int phys )__ === 117 117 This function implements the "giet_fat_read()" system call. 118 118 It accesses the File_Cache associated to the file identified by the file descriptor, and transfers "count" bytes from the cache to the user buffer, starting from the current file offset. 119 119 In case of miss in the File_Cache, it loads all involved clusters into the cache. 120 120 * '''fd_id''' : file descriptor index 121 * '''buffer''' : pointer on the memory buffer 122 * '''count''' : number of bytes 121 * '''buffer''' : pointer to the memory buffer 122 * '''count''' : number of bytes 123 * '''phys''' : use _physical_memcpy instead of memcpy 123 124 Returns the number of bytes actually transfered on success. Returns 0 if EOF is encountered (offset + count > file_size). Returns a negative value on error: 124 125 * GIET_FAT32_NOT_INITIALIZED,