Changeset 672 for trunk/kernel/mm/kcm.h
- Timestamp:
- Nov 19, 2020, 11:49:01 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/kcm.h
r657 r672 2 2 * kcm.h - Kernel Cache Manager definition. 3 3 * 4 * Authors Alain Greiner (2016,2017,2018,2019 )4 * Authors Alain Greiner (2016,2017,2018,2019,2020) 5 5 * 6 6 * Copyright (c) UPMC Sorbonne Universites … … 58 58 list_entry_t active_root; /*! root of active pages list */ 59 59 60 uint32_t full_pages_nr; /*! number of busypages */60 uint32_t full_pages_nr; /*! number of full pages */ 61 61 uint32_t active_pages_nr; /*! number of active pages */ 62 62 … … 69 69 /**************************************************************************************** 70 70 * This structure defines a KCM-page descriptor. 71 * A KCM-page contains at most (CONFIG_PPM_PAGE_SIZE / CONFIG_KCM_SLOT_SIZE) slots,72 * and each slot contains one block. The kcm page descriptor is stored in first slot.71 * A KCM-page contains (CONFIG_PPM_PAGE_SIZE / block_size) slots. 72 * Each slot contains one block, but the kcm page descriptor is stored in first slot. 73 73 * The current allocation status is defined by the 64 bits "status" bit vector: each 74 * non zero bit defines an allocated block / "count sis the number of allocated blocks.75 * Each kcm_page is registered in one of the two following page_list:74 * non zero bit defines an allocated block / "count" is the number of allocated blocks. 75 * Each kcm_page is registered in one of the two following lists, rooted in the kcm: 76 76 * - full : when count == max 77 77 * - active : count < max … … 148 148 149 149 /**************************************************************************************** 150 * This debug function can be called by any thread running in any cluster. 151 * It diplays on TXT0 the current state of a local KCM allocator.150 * This debug function can be called by any thread running in any cluster. It displays 151 * on TXT0 the state of a KCM, identified by the <kcm_cxy> & <kcm_ptr> arguments. 152 152 **************************************************************************************** 153 153 * @ kcm_cxy : remote KCM cluster identifier.
Note: See TracChangeset
for help on using the changeset viewer.