linux/fs/netfs/main.c

// SPDX-License-Identifier: GPL-2.0-or-later
/* Miscellaneous bits for the netfs support library.
 *
 * Copyright (C) 2022 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells ([email protected])
 */

#include <linux/module.h>
#include <linux/export.h>
#include <linux/mempool.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include "internal.h"
#define CREATE_TRACE_POINTS
#include <trace/events/netfs.h>

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();

EXPORT_TRACEPOINT_SYMBOL();

unsigned netfs_debug;
module_param_named(debug, netfs_debug, uint, S_IWUSR | S_IRUGO);
MODULE_PARM_DESC();

static struct kmem_cache *netfs_request_slab;
static struct kmem_cache *netfs_subrequest_slab;
mempool_t netfs_request_pool;
mempool_t netfs_subrequest_pool;

#ifdef CONFIG_PROC_FS
LIST_HEAD();
DEFINE_SPINLOCK();

static const char *netfs_origins[nr__netfs_io_origin] =;

/*
 * Generate a list of I/O requests in /proc/fs/netfs/requests
 */
static int netfs_requests_seq_show(struct seq_file *m, void *v)
{}

static void *netfs_requests_seq_start(struct seq_file *m, loff_t *_pos)
	__acquires(rcu)
{}

static void *netfs_requests_seq_next(struct seq_file *m, void *v, loff_t *_pos)
{}

static void netfs_requests_seq_stop(struct seq_file *m, void *v)
	__releases(rcu)
{}

static const struct seq_operations netfs_requests_seq_ops =;
#endif /* CONFIG_PROC_FS */

static int __init netfs_init(void)
{}
fs_initcall(netfs_init);

static void __exit netfs_exit(void)
{}
module_exit(netfs_exit);