linux/lib/kunit/user_alloc.c

// SPDX-License-Identifier: GPL-2.0
/*
 * KUnit userspace memory allocation resource management.
 */
#include <kunit/resource.h>
#include <kunit/test.h>
#include <linux/kthread.h>
#include <linux/mm.h>

struct kunit_vm_mmap_resource {};

/* vm_mmap() arguments */
struct kunit_vm_mmap_params {};

/* Create and attach a new mm if it doesn't already exist. */
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();