Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.32 KB | None | 0 0
  1. <...>
  2. # if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 0)
  3.                                 , NULL                  /* locked */
  4. # endif
  5.                                 );
  6. #else /* LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0) */
  7.  
  8. # if LEAP_VERSION == (4, 2, 3)
  9.             rc = get_user_pages(R3Ptr,  
  10. #else
  11.             rc = get_user_pages(pTask,                  /* Task for fault accounting. */
  12.                                 pTask->mm,              /* Whose pages. */
  13.                                 R3Ptr,                  /* Where from. */
  14.                                 cPages,                 /* How many pages. */
  15. # endif
  16. # if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 9, 0)) && (LEAP_VERSION == (4, 2, 3))
  17.                                 fWrite ? FOLL_WRITE |   /* Write to memory. */
  18.                                          FOLL_FORCE     /* force write access. */
  19.                                        : 0,             /* Write to memory. */
  20. # if LEAP_VERSION != (4, 2, 3)
  21.                                 fWrite,                 /* Write to memory. */
  22.                                 fWrite,                 /* force write access. */
  23. # endif
  24.                                 &pMemLnx->apPages[0],   /* Page array. */
  25.                                 papVMAs);               /* vmas */
  26. #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(4, 6, 0) */
  27. <...>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement