| Server IP : 172.67.134.114 / Your IP : 162.159.115.41 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/systemtap/runtime/linux/ |
Upload File : |
#include <linux/mm.h>
//
// The following kernel commit changed the get_user_pages()
// function signature for linux-5.9:
//
// commit 64019a2e467a288a16b65ab55ddcbf58c1b00187
// Author: Peter Xu <[email protected]>
// Date: Tue Aug 11 18:39:01 2020 -0700
//
// mm/gup: remove task_struct pointer for all gup code
//
// After the cleanup of page fault accounting, gup does not need to pass
// task_struct around any more. Remove that parameter in the whole gup
// stack.
//
// This changed the function signature from:
//
// long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
// unsigned long start, unsigned long nr_pages,
// unsigned int gup_flags, struct page **pages,
// struct vm_area_struct **vmas);
//
// to
//
// long get_user_pages(struct mm_struct *mm,
// unsigned long start, unsigned long nr_pages,
// unsigned int gup_flags, struct page **pages,
// struct vm_area_struct **vmas);
//
long gupr_wrapper(struct mm_struct *mm,
unsigned long start, unsigned long nr_pages,
unsigned int gup_flags, struct page **pages,
struct vm_area_struct **vmas)
{
return get_user_pages(mm, start, nr_pages, gup_flags, pages, vmas);
}