Changeset 583 for trunk/kernel/kern/cluster.c
- Timestamp:
- Nov 1, 2018, 12:10:42 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/cluster.c
r582 r583 272 272 //////////////////////////////////////////////////////////////////////////////////// 273 273 274 ///////////////////////////////// 274 /////////////////////////////////////// 275 275 lid_t cluster_select_local_core( void ) 276 276 { … … 680 680 } // end cluster_process_copies_unlink() 681 681 682 /////////////////////////////////////////// 683 void cluster_processes_display( cxy_t cxy ) 682 //////////////////////////////////////////// 683 void cluster_processes_display( cxy_t cxy, 684 bool_t owned ) 684 685 { 685 686 xptr_t root_xp; … … 687 688 xptr_t iter_xp; 688 689 xptr_t process_xp; 690 process_t * process_ptr; 691 cxy_t process_cxy; 692 pid_t pid; 689 693 cxy_t txt0_cxy; 690 694 chdev_t * txt0_ptr; … … 692 696 xptr_t txt0_lock_xp; 693 697 694 assert( (cluster_is_undefined( cxy ) == false), 695 "illegal cluster index" ); 698 assert( (cluster_is_undefined( cxy ) == false), "illegal cluster index" ); 696 699 697 700 // get extended pointer on root and lock for local process list in cluster … … 720 723 XLIST_FOREACH( root_xp , iter_xp ) 721 724 { 722 process_xp = XLIST_ELEMENT( iter_xp , process_t , local_list ); 723 process_display( process_xp ); 725 process_xp = XLIST_ELEMENT( iter_xp , process_t , local_list ); 726 process_ptr = GET_PTR( process_xp ); 727 process_cxy = GET_CXY( process_xp ); 728 729 // get process PID 730 pid = hal_remote_l32( XPTR( process_cxy , &process_ptr->pid ) ); 731 732 if( owned ) // display only user & owned processes 733 { 734 if( (CXY_FROM_PID( pid ) == cxy) && (LPID_FROM_PID( pid ) != 0) ) 735 { 736 process_display( process_xp ); 737 } 738 } 739 else // display all local processes 740 { 741 process_display( process_xp ); 742 } 724 743 } 725 744
Note: See TracChangeset
for help on using the changeset viewer.