kernel: demand_paging: add doc to enum arch_page_location

This adds doc to enum arch_page_location.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2023-10-03 14:54:39 -07:00 committed by Carles Cufí
parent 77dc74136c
commit dd6a7eb77d

View file

@ -402,9 +402,17 @@ void arch_mem_page_in(void *addr, uintptr_t phys);
*/
void arch_mem_scratch(uintptr_t phys);
/**
* Status of a particular page location.
*/
enum arch_page_location {
/** The page has been evicted to the backing store. */
ARCH_PAGE_LOCATION_PAGED_OUT,
/** The page is resident in memory. */
ARCH_PAGE_LOCATION_PAGED_IN,
/** The page is not mapped. */
ARCH_PAGE_LOCATION_BAD
};