Changeset 683 for trunk/kernel/mm/mapper.h
- Timestamp:
- Jan 13, 2021, 12:36:17 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/mapper.h
r657 r683 39 39 /******************************************************************************************* 40 40 * This mapper_t object implements the kernel cache for a given VFS file or directory. 41 * There is one mapper per file/dir. It is implemented as a three levels radix tree, 42 * entirely stored in the same cluster as the inode representing the file/dir. 41 * There is one mapper per file/dir. 42 * - It is implemented as a three levels radix tree, entirely stored in the same cluster 43 * as the inode representing the file/directory. 43 44 * - The fast retrieval key is the page index in the file. 44 45 * The ix1_width, ix2_width, ix3_width sub-indexes are configuration parameters. 45 46 * - The leaves are pointers on physical page descriptors, dynamically allocated 46 * in the local cluster.47 * in the same cluster as the radix tree. 47 48 * - The mapper is protected by a "remote_rwlock", to support several simultaneous 48 49 * "readers", and only one "writer". … … 60 61 * buffer, that can be physically located in any cluster. 61 62 * - In the present implementation the cache size for a given file increases on demand, 62 * and the allocated memory is only released when the mapper/inode is destroyed. 63 * and the allocated memory is only released when the inode is destroyed. 64 * 65 * WARNING : This mapper implementation makes the assumption that the PPM page size 66 * is 4 Kbytes. This code should be modified to support a generic page size, 67 * defined by the CONFIG_PPM_PAGE_SIZE parameter. 63 68 ******************************************************************************************/ 64 69
Note: See TracChangeset
for help on using the changeset viewer.