#include <kunit/resource.h>
#include <kunit/test.h>
#include <linux/kthread.h>
#include <linux/mm.h>
struct kunit_vm_mmap_resource { … };
struct kunit_vm_mmap_params { … };
static int kunit_attach_mm(void)
{ … }
static int kunit_vm_mmap_init(struct kunit_resource *res, void *context)
{ … }
static void kunit_vm_mmap_free(struct kunit_resource *res)
{ … }
unsigned long kunit_vm_mmap(struct kunit *test, struct file *file,
unsigned long addr, unsigned long len,
unsigned long prot, unsigned long flag,
unsigned long offset)
{ … }
EXPORT_SYMBOL_GPL(…);
MODULE_IMPORT_NS(…);