linux/mm/cma_debug.c

// SPDX-License-Identifier: GPL-2.0
/*
 * CMA DebugFS Interface
 *
 * Copyright (c) 2015 Sasha Levin <[email protected]>
 */


#include <linux/debugfs.h>
#include <linux/cma.h>
#include <linux/list.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/mm_types.h>

#include "cma.h"

struct cma_mem {};

static int cma_debugfs_get(void *data, u64 *val)
{}
DEFINE_DEBUGFS_ATTRIBUTE();

static int cma_used_get(void *data, u64 *val)
{}
DEFINE_DEBUGFS_ATTRIBUTE();

static int cma_maxchunk_get(void *data, u64 *val)
{}
DEFINE_DEBUGFS_ATTRIBUTE();

static void cma_add_to_cma_mem_list(struct cma *cma, struct cma_mem *mem)
{}

static struct cma_mem *cma_get_entry_from_list(struct cma *cma)
{}

static int cma_free_mem(struct cma *cma, int count)
{}

static int cma_free_write(void *data, u64 val)
{}
DEFINE_DEBUGFS_ATTRIBUTE();

static int cma_alloc_mem(struct cma *cma, int count)
{}

static int cma_alloc_write(void *data, u64 val)
{}
DEFINE_DEBUGFS_ATTRIBUTE();

static void cma_debugfs_add_one(struct cma *cma, struct dentry *root_dentry)
{}

static int __init cma_debugfs_init(void)
{}
late_initcall(cma_debugfs_init);