Changeset 611 for trunk/libs/libalmosmkh


Ignore:
Timestamp:
Jan 9, 2019, 3:02:51 PM (6 years ago)
Author:
alain
Message:

Introduce sigificant modifs in VFS to support the <ls> command,
and the . and .. directories entries.

Location:
trunk/libs/libalmosmkh
Files:
2 edited

Legend:

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

    r597 r611  
    276276    return hal_user_syscall( SYS_DISPLAY,
    277277                             DISPLAY_DQDT, 0, 0, 0 );
     278}
     279
     280///////////////////////////////////////
     281int display_mapper( char        * path,
     282                    unsigned int  page_id,
     283                    unsigned int  nbytes)
     284{
     285    return hal_user_syscall( SYS_DISPLAY,
     286                             DISPLAY_MAPPER,
     287                             (reg_t)path,
     288                             (reg_t)page_id,
     289                             (reg_t)nbytes );
    278290}
    279291
  • trunk/libs/libalmosmkh/almosmkh.h

    r610 r611  
    213213int display_dqdt( void );
    214214
     215/***************************************************************************************
     216 * This debug syscall displays on the kernel terminal TXT0 the content of a given
     217 * page of a given VFS mapper.
     218 * It can be called by any thread running in any cluster.
     219 ***************************************************************************************
     220 * @ path      : pathname identifying the file/directory in VFS.
     221 * @ page_id   : page index in file.
     222 * @ nbytes    : number of bytes to display.
     223 * @ return 0 if success / return -1 if file or page not found.
     224 **************************************************************************************/
     225int display_mapper( char        * path,
     226                    unsigned int  page_id,
     227                    unsigned int  nbytes);
     228
    215229/*****************************************************************************************
    216230* This debug syscall is used to activate / desactivate the context switches trace
Note: See TracChangeset for help on using the changeset viewer.