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


Ignore:
Timestamp:
Aug 4, 2017, 2:03:44 PM (4 years ago)
Author:
alain
Message:

1) Introduce the TSAR hal_cpu_context_switch() function.
2) Introduce the generic vfs_kernel_move() function.

File:
1 edited

Legend:

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

    r313 r317  
    735735 * <file_xp> argument, and a - possibly distributed - user space <buffer>, taken into
    736736 * account the offset in <file_xp>. The transfer direction is defined by <to_buffer>.
    737  * This function is called by the sys_read() and sys_write() system calls.
     737 * This function is called by the elf_load_process() function.
    738738 ******************************************************************************************
    739739 * @ to_buffer : mapper -> buffer if true / buffer -> mapper if false.
     
    741741 * @ buffer    : user space pointer on buffer (can be physically distributed).
    742742 * @ size      : requested number of bytes from offset.
    743  * @ returns number of bytes actually transfered / -1 if error.
     743 * @ returns 0 f success / -1 if error.
    744744 *****************************************************************************************/
    745745error_t vfs_user_move( bool_t   to_buffer,
     
    747747                       void   * buffer,
    748748                       uint32_t size );
     749
     750/******************************************************************************************
     751 * This function moves <size> bytes between a remote file mapper, identified by the
     752 * <file_xp> argument, and a - possibly remote - kernel <buffer_xp>, taken into
     753 * account the offset in <file_xp>. The transfer direction is defined by <to_buffer>.
     754 * This function is called by the  system calls.
     755 ******************************************************************************************
     756 * @ to_buffer : mapper -> buffer if true / buffer -> mapper if false.
     757 * @ file_xp   : extended pointer on the remote file descriptor.
     758 * @ buffer_xp : user space pointer on buffer (can be physically distributed).
     759 * @ size      : requested number of bytes from offset.
     760 * @ returns number of bytes actually transfered / -1 if error.
     761 *****************************************************************************************/
     762error_t vfs_kernel_move( bool_t   to_buffer,
     763                         xptr_t   file_xp,
     764                         xptr_t   buffer_xp,
     765                         uint32_t size );
    749766
    750767/******************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.