Changeset 22 for trunk/kernel/mm/page.h
- Timestamp:
- Jun 3, 2017, 6:58:06 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/page.h
r18 r22 88 88 89 89 /************************************************************************************* 90 * This function set one or several flags in page descriptor flags.90 * This function sets one or several flags in page descriptor flags. 91 91 * @ page : pointer to page descriptor. 92 92 * @ value : all non zero bits in value will be set. … … 96 96 97 97 /************************************************************************************* 98 * This function resetone or several flags in page descriptor flags.98 * This function clears one or several flags in page descriptor flags. 99 99 * @ page : pointer to page descriptor. 100 100 * @ value : all non zero bits in value will be cleared. … … 104 104 105 105 /************************************************************************************* 106 * This function test the value of one or several flags in page descriptor flags.106 * This function tests the value of one or several flags in page descriptor flags. 107 107 * @ page : pointer to page descriptor. 108 108 * @ value : all non zero bits will be tested. … … 114 114 /************************************************************************************* 115 115 * This function synchronizes (i.e. update the disk) all dirty pages in a cluster. 116 * It scan the PPM dirty list, that should be empty when this operation is completed.116 * It scans the PPM dirty list, that should be empty when this operation is completed. 117 117 ************************************************************************************/ 118 118 void sync_all_pages(); 119 119 120 120 /************************************************************************************* 121 * This function set the PG_DIRTY flag in the page descriptor,122 * and register the page in the dirty list in PPM.121 * This function sets the PG_DIRTY flag in the page descriptor, 122 * and registers the page in the dirty list in PPM. 123 123 * @ page : pointer on page descriptor. 124 124 * @ returns true if page was not dirty / returns false if page was dirty … … 127 127 128 128 /************************************************************************************* 129 * This function reset the PG_DIRTY flag in the page descriptor,130 * and remove the page from the dirty list in PPM.129 * This function resets the PG_DIRTY flag in the page descriptor, 130 * and removes the page from the dirty list in PPM. 131 131 * @ page : pointer on page descriptor. 132 132 * @ returns true if page was dirty / returns false if page was not dirty … … 135 135 136 136 /************************************************************************************* 137 * This function makes a local copy of the content of a src page 137 * This function makes a local copy of the content of a src page to a dst page. 138 138 * @ dst : pointer on destination page descriptor. 139 139 * @ src : pointer on source page descriptor. … … 143 143 144 144 /************************************************************************************* 145 * This function reset to 0 all bytes in a given page.145 * This function resets to 0 all bytes in a given page. 146 146 * @ page : pointer on page descriptor. 147 147 ************************************************************************************/ … … 157 157 158 158 /************************************************************************************* 159 * This blocking function reset the PG_LOCKED flag on the page, if there is no160 * other waiting thread. I Fthere is waiting thread(s), it activates the first159 * This blocking function resets the PG_LOCKED flag on the page, if there is no 160 * other waiting thread. If there is waiting thread(s), it activates the first 161 161 * waiting thread without modifying the PG_LOCKED flag. 162 162 * @ page : pointer on page descriptor. … … 165 165 166 166 /************************************************************************************* 167 * This blocking function atomically increment the page refcount.167 * This blocking function atomically increments the page refcount. 168 168 * @ page : pointer on page descriptor. 169 169 ************************************************************************************/ … … 171 171 172 172 /************************************************************************************* 173 * This blocking function atomically decrement the page refcount.173 * This blocking function atomically decrements the page refcount. 174 174 * @ page : pointer on page descriptor. 175 175 ************************************************************************************/
Note: See TracChangeset
for help on using the changeset viewer.