Changeset 597 for trunk/libs/libalmosmkh


Ignore:
Timestamp:
Nov 10, 2018, 2:56:43 PM (5 years ago)
Author:
alain
Message:

Rewrite the mmap() and stat() syscalls to implement the cat command in ksh.

Location:
trunk/libs/libalmosmkh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libs/libalmosmkh/almosmkh.c

    r589 r597  
    219219}
    220220
    221 ////////////////////////////////
     221////////////////////////////////////
    222222int display_sched( unsigned int cxy,
    223223                   unsigned int lid )
     
    229229}
    230230
    231 /////////////////////////////////////////////////
     231////////////////////////////////////////////////
    232232int display_cluster_processes( unsigned int cxy,
    233233                               unsigned int owned )
     
    271271}
    272272
     273////////////////////////
     274int display_dqdt( void )
     275{
     276    return hal_user_syscall( SYS_DISPLAY,
     277                             DISPLAY_DQDT, 0, 0, 0 );
     278}
     279
    273280///////////////////////////////
    274281int trace( unsigned int active,
     
    281288                             (reg_t)lid, 0 );
    282289}
    283 
    284 ////////////////////////
    285 int display_dqdt( void )
    286 {
    287     return hal_user_syscall( SYS_DISPLAY,
    288                              DISPLAY_DQDT, 0, 0, 0 );
    289 }
    290290
    291291/////////////////
  • trunk/libs/libalmosmkh/almosmkh.h

    r589 r597  
    138138 * @ return 0 if success / return -1 if illegal argument.
    139139 **************************************************************************************/
    140 int display_vmm(unsigned int cxy, unsigned int  pid );
     140int display_vmm(unsigned int cxy, unsigned int pid );
    141141
    142142/***************************************************************************************
     
    174174 **************************************************************************************/
    175175int display_txt_processes( unsigned int txt_id );
     176
     177/***************************************************************************************
     178 * This debug syscall displays on the kernel terminal TXT0
     179 * the set of busylocks hold by a thread identified by the <pid> and <trdid> arguments.
     180 * It can be called by any thread running in any cluster.
     181 ***************************************************************************************
     182 * @ pid      : [in] process identifier.
     183 * @ trdid    : [in] thread identifier.
     184 * @ return 0 if success / return -1 if illegal arguments.
     185 **************************************************************************************/
     186int display_busylocks( unsigned int pid,
     187                       unsigned int trdid );
    176188
    177189/***************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.