Changes between Version 25 and Version 26 of file_system


Ignore:
Timestamp:
Aug 26, 2015, 10:41:28 AM (10 years ago)
Author:
guerin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • file_system

    v25 v26  
    114114 * GIET_FAT32_NOT_OPEN
    115115
    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 )__ ===
    117117This function implements the "giet_fat_read()" system call.
    118118It 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.
    119119In case of miss in the File_Cache, it loads all involved clusters into the cache.
    120120 * '''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
    123124Returns the number of bytes actually transfered on success. Returns 0 if EOF is encountered (offset + count > file_size). Returns a negative value on error:
    124125 * GIET_FAT32_NOT_INITIALIZED,