]> git.proxmox.com Git - mirror_spl-debian.git/blame - include/sys/proc.h
Add 3 missing typedefs.
[mirror_spl-debian.git] / include / sys / proc.h
CommitLineData
715f6251 1/*
2 * This file is part of the SPL: Solaris Porting Layer.
3 *
4 * Copyright (c) 2008 Lawrence Livermore National Security, LLC.
5 * Produced at Lawrence Livermore National Laboratory
6 * Written by:
7 * Brian Behlendorf <behlendorf1@llnl.gov>,
8 * Herb Wartens <wartens2@llnl.gov>,
9 * Jim Garlick <garlick@llnl.gov>
10 * UCRL-CODE-235197
11 *
12 * This is free software; you can redistribute it and/or modify it
13 * under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
16 *
17 * This is distributed in the hope that it will be useful, but WITHOUT
18 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
20 * for more details.
21 *
22 * You should have received a copy of the GNU General Public License along
23 * with this program; if not, write to the Free Software Foundation, Inc.,
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 */
26
57d1b188 27#ifndef _SPL_PROC_H
28#define _SPL_PROC_H
29
30#include <linux/proc_fs.h>
04a479f7 31#include <linux/kmod.h>
04a479f7 32#include <linux/ctype.h>
33#include <linux/sysctl.h>
34#include <linux/seq_file.h>
35#include <sys/sysmacros.h>
99639e4a 36#include <sys/systeminfo.h>
04a479f7 37#include <sys/kmem.h>
38#include <sys/mutex.h>
39#include <sys/kstat.h>
40#include <sys/debug.h>
41
57d86234 42#ifdef CONFIG_SYSCTL
43#ifdef HAVE_2ARGS_REGISTER_SYSCTL
44#define spl_register_sysctl_table(t, a) register_sysctl_table(t, a)
45#else
46#define spl_register_sysctl_table(t, a) register_sysctl_table(t)
47#endif /* HAVE_2ARGS_REGISTER_SYSCTL */
48#define spl_unregister_sysctl_table(t) unregister_sysctl_table(t)
49#endif /* CONFIG_SYSCTL */
50
c30df9c8 51extern struct proc_dir_entry *proc_spl_kstat;
04a479f7 52struct proc_dir_entry *proc_dir_entry_find(struct proc_dir_entry *root,
53 const char *str);
54int proc_dir_entries(struct proc_dir_entry *root);
57d1b188 55
56int proc_init(void);
57void proc_fini(void);
58
59#endif /* SPL_PROC_H */