Ignore:
Timestamp:
Nov 1, 2018, 12:13:45 PM (3 years ago)
Author:
alain
Message:

Introduce sys_place_fork() function.

File:
1 edited

Legend:

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

    r566 r584  
    409409/******************************************************************************************
    410410 * [32] This function associate a specific signal handler to a given signal type.
    411  * Tee handlers for the SIGKILL and SIGSTOP signals cannot be redefined.
     411 * The handlers for the SIGKILL and SIGSTOP signals cannot be redefined.
    412412 ******************************************************************************************
    413413 * @ sig_id    : index defining signal type (from 1 to 31).
     
    530530
    531531/******************************************************************************************
    532  * [40] This function returns the hardware platform parameters.
     532 * [40] This function implement the non-standard get_config() syscall.
     533 * It returns in <x_size>, <y_size>, <ncores> the hardware platform parameters.
    533534 ******************************************************************************************
    534535 * @ x_size   : [out] number of clusters in a row.
     
    542543
    543544/******************************************************************************************
    544  * [41] This function returns the calling core cluster and local index.
     545 * [41] This function implements the non-standard get_core() syscall.
     546 * It returns in <cxy> and <lid> the calling core cluster and local index.
    545547 ******************************************************************************************
    546548 * @ cxy      : [out] cluster identifier (fixed format)
     
    552554
    553555/******************************************************************************************
    554  * [42] This function returns in a 64 bits user buffer the calling core cycles count.
     556 * [42] This function implements the non-standard get_cycle() syscall.
     557 * It returns in a 64 bits user buffer the calling core cycles count.
    555558 * It uses both the hardware register and the core descriptor cycles count to take
    556559 * into account a possible harware register overflow  in 32 bits architectures.
     
    584587
    585588/******************************************************************************************
    586  * [44] TBD
     589 * [44] This function implements the non-standard place_fork() syscall.
     590 * It can be used to specify the target cluster <cxy> for a new process created
     591 * by a subsequent fork() syscall.
     592 * WARNING: it must be called before each fork() syscall, as the placement specification
     593 *          is reset by the fork syscall.
    587594 ******************************************************************************************
    588595 * @ cxy    : cluster identifier.
    589  * @ lid    : core local index.
    590  * @ return 0 if success / return -1 if failure.
    591  *****************************************************************************************/
    592 int sys_place( uint32_t cxy,
    593                uint32_t lid );
     596 * @ return 0 if success / return -1 if failure.
     597 *****************************************************************************************/
     598int sys_place_fork( uint32_t cxy );
    594599
    595600/******************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.