Changeset 626 for trunk/kernel/syscalls/syscalls.h
- Timestamp:
- Apr 29, 2019, 7:25:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/syscalls.h
r623 r626 2 2 * syscalls.h - Kernel side services for syscall handling. 3 3 * 4 * Author Alain Greiner (2016,2017,2018 )4 * Author Alain Greiner (2016,2017,2018,2019) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 584 584 * [43] This debug function displays on the kernel terminal TXT0 an user defined string, 585 585 * or the current state of a kernel structure, identified by the <type> argument. 586 * The <arg0>, <arg1>, and <arg2> arguments depends on the structure type: 587 * - DISPLAY_STRING : an user defined string 588 * - DISPLAY_VMM : VSL and GPT for a process identified by <pid>. 589 * - DISPLAY_SCHED : all threads allocated to a scheduler <cxy> & <lid>. 590 * - DISPLAY_CLUSTER_PROCESS : all processes registered in a cluster identified by <cxy>. 591 * - DISPLAY_TXT_PROCESS : all processes registered in a cluster identified by <cxy>. 592 * - DISPLAY_VFS : all files registered in the VFS cache. 593 * - DISPLAY_CHDEV : all registered channel devices. 594 * - DISPLAY_DQDT : all DQDT nodes curren values. 595 * - DISPLAY_BUSYLOCKS : all busylocks taken by one thread. 596 * - DISPLAY_MAPPER : one page of a given mapper. 586 * The <arg0>, <arg1>, and <arg2> arguments depends on the structure type. 597 587 ****************************************************************************************** 598 588 * type : [in] type of display … … 671 661 672 662 /****************************************************************************************** 673 * [50] This function implements the exitsystem call terminating a POSIX process.663 * [50] This function implements the "exit" system call terminating a POSIX process. 674 664 * It can be called by any thread running in any cluster. 675 665 * It uses both remote accesses to access the owner process descriptor, and the 676 * RPC_PROCESS_SIGACTION to delete remote process and thread descriptors.666 * RPC_PROCESS_SIGACTION to delete remote process copies and thread descriptors. 677 667 * In the present implementation, this function implements actually the _exit(): 678 668 * - it does not flush open output streams. 679 669 * - it does not close open streams. 680 670 ****************************************************************************************** 681 * @ status : terminaison status. 671 * @ status : terminaison status returned to parent process. 672 * @ return 0 if success / return -1 if failure. 682 673 *****************************************************************************************/ 683 674 int sys_exit( uint32_t status ); 684 675 676 /****************************************************************************************** 677 * [51] This function implements the "sync" system call. 678 * It forces all modified pages in all kernel mappers to be copied to the IOC device. 679 * It can be called by any thread running in any cluster. 680 * TODO not implemented yet. 681 ****************************************************************************************** 682 * @ return 0 if success / return -1 if failure. 683 *****************************************************************************************/ 684 int sys_sync( void ); 685 686 /****************************************************************************************** 687 * [52] This function implements the "fsync" system call. 688 * It forces all modified pages of the file mapper identified by the <fd> argument 689 * to be copied to the IOC device. 690 * It can be called by any thread running in any cluster. 691 * TODO not implemented yet. 692 ****************************************************************************************** 693 * @ file_id : file descriptor index in fd_array. 694 * @ return 0 if success / return -1 if failure. 695 *****************************************************************************************/ 696 int sys_fsync( uint32_t file_id ); 697 685 698 #endif // _SYSCALLS_H_
Note: See TracChangeset
for help on using the changeset viewer.