Changeset 457 for trunk/kernel/syscalls/syscalls.h
- Timestamp:
- Aug 2, 2018, 11:47:13 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/syscalls.h
r445 r457 2 2 * syscalls.h - Kernel side services for syscall handling. 3 3 * 4 * Author Alain Greiner (2016,2017 )4 * Author Alain Greiner (2016,2017,2018) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 25 25 #define _SYSCALLS_H_ 26 26 27 #include <hal_ types.h>27 #include <hal_kernel_types.h> 28 28 #include <shared_syscalls.h> 29 29 … … 116 116 * and the code implementing the operations is in the remore_sem.c file. 117 117 ****************************************************************************************** 118 * @ vaddr : semaphore virtual address in user space == identifier. 119 * @ operation : SEM_INIT / SEM_DESTROY / SEM_GETVALUE / SEM_POST / SEM_WAIT. 120 * @ value : pointer on in/out argument in user space. 118 * @ vaddr : semaphore virtual address in user space == identifier. 119 * @ operation : SEM_INIT / SEM_DESTROY / SEM_GETVALUE / SEM_POST / SEM_WAIT. 120 * @ init_value : initial semaphore value. 121 * @ current_value : pointer on buffer for current semaphore value. 121 122 * @ return 0 if success / return -1 if failure. 122 123 *****************************************************************************************/ 123 124 int sys_sem( void * vaddr, 124 125 uint32_t operation, 125 uint32_t * value ); 126 uint32_t init_value, 127 uint32_t * current_value ); 126 128 127 129 /****************************************************************************************** … … 584 586 585 587 /****************************************************************************************** 588 * [44] TBD 589 ****************************************************************************************** 590 * @ cxy : cluster identifier. 591 * @ lid : core local index. 592 * @ return 0 if success / return -1 if failure. 593 *****************************************************************************************/ 594 int sys_place( uint32_t cxy, 595 uint32_t lid ); 596 597 /****************************************************************************************** 586 598 * [45] This function block the calling thread on the THREAD_BLOCKED_GLOBAL condition, 587 599 * and deschedule. … … 624 636 625 637 /****************************************************************************************** 626 * [49] TBD 627 ****************************************************************************************** 628 * @ cxy : cluster identifier. 629 * @ lid : core local index. 630 * @ return 0 if success / return -1 if failure. 631 *****************************************************************************************/ 632 int sys_place( uint32_t cxy, 633 uint32_t lid ); 638 * [49] This function returns a non-zero value in the <is_fg> buffer when the process 639 * identified by the <pid> argument is the current TXT owner. 640 ****************************************************************************************** 641 * @ pid : process identifier. 642 * @ is_fg : pointer on buffer. 643 * @ return 0 if success / return -1 if failure. 644 *****************************************************************************************/ 645 int sys_is_fg( pid_t pid, 646 uint32_t * is_fg ); 634 647 635 648 #endif // _SYSCALLS_H_
Note: See TracChangeset
for help on using the changeset viewer.