summaryrefslogtreecommitdiff
path: root/documentation/3.kernel/kernel-porting/kernel-porting.md
diff options
context:
space:
mode:
authorShell <[email protected]>2024-12-02 15:13:46 +0800
committerRbb666 <[email protected]>2025-02-25 11:26:30 +0800
commit269d28ac3bfe7bce250eb21b74fcf2c72a0bfdc9 (patch)
treec836cf8a62d21904fe2138ce90bd750831f55df4 /documentation/3.kernel/kernel-porting/kernel-porting.md
parent9386411d13d8f9085eebc1ac7515f008685ab447 (diff)
feat: mm: install page in a discrete method
This patch refactors the `rt_page_install` function by delegating specific operations to new helper functions. Besides, the contiguous page regions are now separated to segments of fixed size. The goal is to improve the overall code readability, enhance modularity, and ensure better handling of page installation logic through clearer separation of concerns. Changes: - Introduced `_get_mpr_ready_n_install` to encapsulate memory preparation and page installation logic. - Added `_update_region_list` for updating the installed page registry. - Defined `_PAGE_STRIPE` for optimized region processing. - Modified `rt_page_install` to handle regions in smaller chunks using helper functions for better maintainability. - Improved locking mechanisms with `rt_spin_lock` for thread safety. - Reduced code duplication and clarified shadow region calculations. Signed-off-by: Shell <[email protected]>
Diffstat (limited to 'documentation/3.kernel/kernel-porting/kernel-porting.md')
0 files changed, 0 insertions, 0 deletions