Changeset 637 for trunk/kernel/syscalls/syscalls.h
- Timestamp:
- Jul 18, 2019, 2:06:55 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/syscalls.h
r626 r637 210 210 /****************************************************************************************** 211 211 * [13] This function map physical memory (or a file) in the calling thread virtual space. 212 * The <attr> argument is a pointer on a structure for arguments (see shared_ syscalls.h).212 * The <attr> argument is a pointer on a structure for arguments (see shared_mman.h). 213 213 * The user defined virtual address (MAP_FIXED flag) is not supported. 214 214 * TODO : the access rights checking is not implemented yet [AG] … … 560 560 561 561 /****************************************************************************************** 562 * [41] This function implements the non-standard get_core () syscall.562 * [41] This function implements the non-standard get_core_id() syscall. 563 563 * It returns in <cxy> and <lid> the calling core cluster and local index. 564 564 ****************************************************************************************** … … 567 567 * @ return 0 if success / return -1 if illegal arguments 568 568 *****************************************************************************************/ 569 int sys_get_core ( uint32_t * cxy,570 uint32_t * lid );569 int sys_get_core_id( uint32_t * cxy, 570 uint32_t * lid ); 571 571 572 572 /****************************************************************************************** … … 696 696 int sys_fsync( uint32_t file_id ); 697 697 698 /****************************************************************************************** 699 * [53] This function implements the non-standard "get_best_core" syscall. 700 * It selects, in a macro-cluster specified by the <base_cxy> and <level> arguments, 701 * the core that has the lowest load. 702 * When an active core has been found in the target macro-cluster, it writes into the 703 * <cxy> and <lid> buffers the cluster identifier and the core local index, and return 0. 704 * It returns -1 in case of illegal arguments (level / cxy / lid). 705 * It returns +1 if there is no active core in specified macro-cluster. 706 ****************************************************************************************** 707 * @ base_cxy : [in] any cluster identifier in macro-cluster. 708 * @ level : [in] macro-cluster level in [1,2,3,4,5]. 709 * @ cxy : [out] selected core cluster identifier. 710 * @ lid : [out] selected core local index in cluster. 711 * @ return 0 if success / -1 if illegal arguments / +1 if no core in macro-clusters. 712 *****************************************************************************************/ 713 int sys_get_best_core( uint32_t base_cxy, 714 uint32_t level, 715 uint32_t * cxy, 716 uint32_t * lid ); 717 718 /****************************************************************************************** 719 * [54] This function implements the non-standard "get_nb_cores" syscall. 720 * It writes in the <ncores> buffer the number of cores in the target cluster <cxy>. 721 ****************************************************************************************** 722 * @ cxy : [in] target cluster identifier. 723 * @ ncores : [out] number of cores / 0 if cluster cxy undefined in architecture. 724 * @ return 0 if success / return -1 if illegal "ncores" arguments. 725 *****************************************************************************************/ 726 int sys_get_nb_cores( uint32_t cxy, 727 uint32_t * ncores ); 728 698 729 #endif // _SYSCALLS_H_
Note: See TracChangeset
for help on using the changeset viewer.