Lines 1018-1023
Link Here
|
1018 |
PRTR0MEMOBJLNX pMemLnx; |
1018 |
PRTR0MEMOBJLNX pMemLnx; |
1019 |
int rc = VERR_NO_MEMORY; |
1019 |
int rc = VERR_NO_MEMORY; |
1020 |
int const fWrite = fAccess & RTMEM_PROT_WRITE ? 1 : 0; |
1020 |
int const fWrite = fAccess & RTMEM_PROT_WRITE ? 1 : 0; |
|
|
1021 |
# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0) |
1022 |
int locked; |
1023 |
# endif |
1021 |
|
1024 |
|
1022 |
/* |
1025 |
/* |
1023 |
* Check for valid task and size overflows. |
1026 |
* Check for valid task and size overflows. |
Lines 1078-1084
Link Here
|
1078 |
fWrite, /* force write access. */ |
1081 |
fWrite, /* force write access. */ |
1079 |
# endif |
1082 |
# endif |
1080 |
&pMemLnx->apPages[0], /* Page array. */ |
1083 |
&pMemLnx->apPages[0], /* Page array. */ |
|
|
1084 |
# if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0) |
1085 |
papVMAs, /* vmas */ |
1086 |
&locked); |
1087 |
# else |
1081 |
papVMAs); /* vmas */ |
1088 |
papVMAs); /* vmas */ |
|
|
1089 |
#endif |
1082 |
#else /* LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0) */ |
1090 |
#else /* LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0) */ |
1083 |
rc = get_user_pages(pTask, /* Task for fault accounting. */ |
1091 |
rc = get_user_pages(pTask, /* Task for fault accounting. */ |
1084 |
pTask->mm, /* Whose pages. */ |
1092 |
pTask->mm, /* Whose pages. */ |