Changeset 612 for trunk/kernel/mm
- Timestamp:
- Jan 11, 2019, 6:35:07 PM (6 years ago)
- Location:
- trunk/kernel/mm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/kmem.c
r611 r612 40 40 #include <fatfs.h> 41 41 #include <ramfs.h> 42 #include < remote_dir.h>42 #include <user_dir.h> 43 43 #include <remote_sem.h> 44 44 #include <remote_barrier.h> … … 101 101 else if( type == KMEM_CONDVAR ) return sizeof( remote_condvar_t ); 102 102 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 ); 104 104 105 105 else if( type == KMEM_512_BYTES ) return 512; -
trunk/kernel/mm/mapper.h
r611 r612 38 38 39 39 /******************************************************************************************* 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. 41 41 * There is one mapper per file/dir. It is implemented as a three levels radix tree, 42 42 * entirely stored in the same cluster as the inode representing the file/dir. … … 61 61 * - In the present implementation the cache size for a given file increases on demand, 62 62 * 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. 63 66 ******************************************************************************************/ 64 67 -
trunk/kernel/mm/page.h
r606 r612 37 37 /************************************************************************************* 38 38 * 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]40 39 ************************************************************************************/ 41 40 … … 43 42 #define PG_RESERVED 0x0002 // cannot be allocated by PPM 44 43 #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]47 44 #define PG_DIRTY 0x0040 // page has been written 48 45 #define PG_COW 0x0080 // page is copy-on-write
Note: See TracChangeset
for help on using the changeset viewer.