Changeset 623 for trunk/kernel/mm/mapper.h
- Timestamp:
- Mar 6, 2019, 4:37:15 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/mapper.h
r614 r623 3 3 * 4 4 * Authors Mohamed Lamine Karaoui (2015) 5 * Alain Greiner (2016,2017,2018 )5 * Alain Greiner (2016,2017,2018,2019) 6 6 * 7 7 * Copyright (c) UPMC Sorbonne Universites … … 48 48 * "readers", and only one "writer". 49 49 * - A "reader" thread, calling the mapper_remote_get_page() function to get a page 50 * descriptor pointer from the page index in file, can be r emote (running in any cluster).50 * descriptor pointer from the page index in file, can be running in any cluster. 51 51 * - A "writer" thread, calling the mapper_handle_miss() function to handle a page miss 52 52 * must be local (running in the mapper cluster). 53 * - The vfs_ mapper_move_page() function access the file system to handle a mapper miss,53 * - The vfs_fs_move_page() function access the file system to handle a mapper miss, 54 54 * or update a dirty page on device. 55 55 * - The vfs_mapper_load_all() functions is used to load all pages of a directory … … 63 63 * 64 64 * TODO : the mapper being only used to implement the VFS cache(s), the mapper.c 65 * and mapper.h file should be trandfered to the vfs directory.65 * and mapper.h file should be trandfered to the fs directory. 66 66 ******************************************************************************************/ 67 67 … … 230 230 231 231 /******************************************************************************************* 232 * This scans all pages present in the mapper identified by the <mapper> argument, 233 * and synchronize all pages maked as dirty" on disk. 234 * These pages are unmarked and removed from the local PPM dirty_list. 235 * This function must be called by a local thread running in same cluster as the mapper. 236 * A remote thread must call the RPC_MAPPER_SYNC function. 237 ******************************************************************************************* 238 * @ mapper : [in] local pointer on local mapper. 239 * @ returns 0 if success / return -1 if error. 240 ******************************************************************************************/ 241 error_t mapper_sync( mapper_t * mapper ); 242 243 /******************************************************************************************* 232 244 * This debug function displays the content of a given page of a given mapper. 233 245 * - the mapper is identified by the <mapper_xp> argument.
Note: See TracChangeset
for help on using the changeset viewer.