Changeset 60457 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Apr 12, 2016 1:27:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c
r60455 r60457 1047 1047 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0) 1048 1048 if (R0Process == RTR0ProcHandleSelf()) 1049 #endif1050 1049 rc = get_user_pages(R3Ptr, /* Where from. */ 1051 1050 cPages, /* How many pages. */ … … 1054 1053 &pMemLnx->apPages[0], /* Page array. */ 1055 1054 papVMAs); /* vmas */ 1056 #if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)1057 1055 /* 1058 1056 * Actually this should not happen at the moment as call this function … … 1069 1067 &pMemLnx->apPages[0], /* Page array. */ 1070 1068 papVMAs); /* vmas */ 1071 #endif 1069 #else /* LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0) */ 1070 rc = get_user_pages(pTask, /* Task for fault accounting. */ 1071 pTask->mm, /* Whose pages. */ 1072 R3Ptr, /* Where from. */ 1073 cPages, /* How many pages. */ 1074 fWrite, /* Write to memory. */ 1075 fWrite, /* force write access. */ 1076 &pMemLnx->apPages[0], /* Page array. */ 1077 papVMAs); /* vmas */ 1078 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0) */ 1072 1079 if (rc == cPages) 1073 1080 {
Note:
See TracChangeset
for help on using the changeset viewer.