#include <linux/fs.h>
#include <linux/proc_fs.h>
#include <linux/module.h>
#include <linux/nsproxy.h>
#include <net/net_namespace.h>
#include "netns.h"
#include "procfs.h"
static ssize_t
nlm_end_grace_write(struct file *file, const char __user *buf, size_t size,
loff_t *pos)
{ … }
static ssize_t
nlm_end_grace_read(struct file *file, char __user *buf, size_t size,
loff_t *pos)
{ … }
static const struct proc_ops lockd_end_grace_proc_ops = …;
int __init
lockd_create_procfs(void)
{ … }
void __exit
lockd_remove_procfs(void)
{ … }