Ignore:
Timestamp:
Oct 10, 2020, 5:11:27 PM (4 years ago)
Author:
alain
Message:
  • Introduce the sys_socket.c file implementing all socket related syscalls.
  • Improve the non-standard sys_get_config() function.
File:
1 edited

Legend:

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

    r657 r664  
    348348 * but the directory must exist in the file system.
    349349 * It returns a DIR pointer <dirp> on the dirent array in user space.
     350 * The calling process fd_array is NOT modified.
    350351 ******************************************************************************************
    351352 * @ pathname   : [in]  pathname (can be relative or absolute).
     
    558559/******************************************************************************************
    559560 * [40] This function implement the non-standard get_config() syscall.
    560  * It returns in <x_size>, <y_size>, <ncores> the hardware platform parameters.
    561  ******************************************************************************************
    562  * @ x_size   : [out] number of clusters in a row.
    563  * @ y_size   : [out] number of clusters in a column.
    564  * @ ncores   : [out] number of cores per cluster.
    565  * @ return 0 if success / return -1 if illegal arguments
    566  *****************************************************************************************/
    567 int sys_get_config( uint32_t * x_size,
    568                     uint32_t * y_size,
    569                     uint32_t * ncores );
     561 * It returns the global hardware platform parameters in the <config> shared structure,
     562 * that is defined in the shared_almos.h file.
     563 ******************************************************************************************
     564 * @ config   : [out] pointer on the hard_config_t structure in user space.
     565 * @ return 0 if success / return -1 if illegal argument
     566 *****************************************************************************************/
     567int sys_get_config( struct hard_config_s * config );
    570568
    571569/******************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.