12 lines
303 B
C
12 lines
303 B
C
|
#include <linux/mm.h>
|
||
|
#include <linux/kallsyms.h>
|
||
|
|
||
|
static int (*shmem_zero_setup_ptr)(struct vm_area_struct *) = NULL;
|
||
|
|
||
|
int shmem_zero_setup(struct vm_area_struct *vma)
|
||
|
{
|
||
|
if (!shmem_zero_setup_ptr)
|
||
|
shmem_zero_setup_ptr = kallsyms_lookup_name("shmem_zero_setup");
|
||
|
return shmem_zero_setup_ptr(vma);
|
||
|
}
|