check_page_ne

Function check_page_ne 

Source
pub fn check_page_ne(current_task: &CurrentTask, addr: UserAddress, data: char)
Expand description

Checks that the page in current_task’s address space starting at addr is readable. Panics if the read failed, or the page was filled with the ASCII character data.

This method uses the #[track_caller] attribute, which will display the caller’s file and line number in the event of a panic. This makes it easier to find test regressions.