Changeset 265 for trunk/kernel/vfs/vfs.h


Ignore:
Timestamp:
Jul 21, 2017, 7:36:08 AM (5 years ago)
Author:
alain
Message:

Fix several bugs in VFS.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/vfs/vfs.h

    r239 r265  
    725725/******************************************************************************************
    726726 * This function moves <size> bytes between the file identified by the open file descriptor
    727  * <file_xp> and a local kernel <buffer> , taken into account the offset in <file_xp>.
     727 * <file_xp> and a local kernel or user <buffer>, as defined by the <is_user> argument,
     728 * and taken into account the offset in <file_xp>.
    728729 * The transfer direction is defined by the <to_buffer> argument.
    729730 ******************************************************************************************
    730  * @ to_buffer : mapper -> buffer if true / buffer->mapper if false.
     731 * @ to_buffer : mapper -> buffer if true / buffer -> mapper if false.
     732 * @ is_user   : user space buffer if true / local kernel buffer if false.
    731733 * @ file_xp   : extended pointer on the remote file descriptor.
    732  * @ buffer    : local pointer on local kernel buffer.
     734 * @ buffer    : local pointer on buffer.
    733735 * @ size      : requested number of bytes from offset.
    734736 * @ returns number of bytes actually transfered / -1 if error.
    735737 *****************************************************************************************/
    736738error_t vfs_move( bool_t   to_buffer,
     739                  bool_t   is_user,
    737740                  xptr_t   file_xp,
    738741                  void   * buffer,
Note: See TracChangeset for help on using the changeset viewer.