-
Notifications
You must be signed in to change notification settings - Fork 1
Linux Kernel
Alexis edited this page Oct 6, 2023
·
3 revisions
Get linux version: grep "LINUX_VERSION_CODE" /usr/include/linux/version.h
replaced vma->vm_flags
with vm_flags_set
mmap_read_lock(current->mm);
for (mr->n_pages = 0; mr->n_pages < max_pages; mr->n_pages += rc) {
rc = get_user_pages(first_page + mr->n_pages * PAGE_SIZE,
max_pages - mr->n_pages, FOLL_WRITE,
mr->pages + mr->n_pages, NULL);
if (rc <= 0) {
EFCH_ERR("%s: ERROR: get_user_pages(%d) returned %d",
__FUNCTION__, max_pages - mr->n_pages, rc);
break;
}
}
mmap_read_unlock(current->mm);