Changeset 612 for trunk/kernel/mm


Ignore:
Timestamp:
Jan 11, 2019, 6:35:07 PM (5 years ago)
Author:
alain
Message:

Fix several bugs in vfs.c, fatfs.c, and devfs.c to support
the <.> and <..> directory entries.

Location:
trunk/kernel/mm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/kmem.c

    r611 r612  
    4040#include <fatfs.h>
    4141#include <ramfs.h>
    42 #include <remote_dir.h>
     42#include <user_dir.h>
    4343#include <remote_sem.h>
    4444#include <remote_barrier.h>
     
    101101    else if( type == KMEM_CONDVAR )       return sizeof( remote_condvar_t );
    102102    else if( type == KMEM_MUTEX )         return sizeof( remote_mutex_t );
    103     else if( type == KMEM_DIR )           return sizeof( remote_dir_t );
     103    else if( type == KMEM_DIR )           return sizeof( user_dir_t );
    104104
    105105        else if( type == KMEM_512_BYTES )     return 512;
  • trunk/kernel/mm/mapper.h

    r611 r612  
    3838
    3939/*******************************************************************************************
    40  * The mapper implements the kernel cache for a given file or directory.
     40 * The mapper implements the kernel cache for a given VFS file or directory.
    4141 * There is one mapper per file/dir. It is implemented as a three levels radix tree,
    4242 * entirely stored in the same cluster as the inode representing the file/dir.
     
    6161 * - In the present implementation the cache size for a given file increases on demand,
    6262 *   and the  allocated memory is only released when the mapper/inode is destroyed.
     63 *
     64 * TODO : the mapper being only used to implement the VFS cache(s), the mapper.c
     65 *        and mapper.h file should beerro trandfered to the vfs directory.
    6366 ******************************************************************************************/
    6467
  • trunk/kernel/mm/page.h

    r606 r612  
    3737/*************************************************************************************
    3838 * This  defines the flags that can be attached to a physical page.
    39  * TODO : the PG_BUFFER and PG_IO_ERR flags semantic is not defined [AG]
    4039 ************************************************************************************/
    4140
     
    4342#define PG_RESERVED         0x0002     // cannot be allocated by PPM
    4443#define PG_FREE             0x0004     // page can be allocated by PPM
    45 #define PG_IO_ERR           0x0010     // mapper signals access error    TODO ??? [AG]
    46 #define PG_BUFFER           0x0020     // used in blockio.c              TODO ??? [AG]
    4744#define PG_DIRTY            0x0040     // page has been written
    4845#define PG_COW          0x0080     // page is copy-on-write
Note: See TracChangeset for help on using the changeset viewer.