1239310Sdim/*
2239310Sdim *  Copyright (C) 2007-2010 Lawrence Livermore National Security, LLC.
3239310Sdim *  Copyright (C) 2007 The Regents of the University of California.
4239310Sdim *  Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
5239310Sdim *  Written by Brian Behlendorf <behlendorf1@llnl.gov>.
6239310Sdim *  UCRL-CODE-235197
7239310Sdim *
8239310Sdim *  This file is part of the SPL, Solaris Porting Layer.
9239310Sdim *
10239310Sdim *  The SPL is free software; you can redistribute it and/or modify it
11239310Sdim *  under the terms of the GNU General Public License as published by the
12239310Sdim *  Free Software Foundation; either version 2 of the License, or (at your
13239310Sdim *  option) any later version.
14239310Sdim *
15239310Sdim *  The SPL is distributed in the hope that it will be useful, but WITHOUT
16239310Sdim *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
17239310Sdim *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
18239310Sdim *  for more details.
19239310Sdim *
20239310Sdim *  You should have received a copy of the GNU General Public License along
21239310Sdim *  with the SPL.  If not, see <http://www.gnu.org/licenses/>.
22239310Sdim */
23239310Sdim
24239310Sdim#ifndef _SPL_PROC_H
25239310Sdim#define	_SPL_PROC_H
26239310Sdim
27239310Sdim#include <linux/proc_fs.h>
28239310Sdim#include <linux/sched.h>
29239310Sdim
30239310Sdimextern struct proc_dir_entry *proc_spl_kstat;
31239310Sdim
32239310Sdimint spl_proc_init(void);
33239310Sdimvoid spl_proc_fini(void);
34239310Sdim
35239310Sdimstatic inline boolean_t
36239310Sdimzfs_proc_is_caller(struct task_struct *t)
37239310Sdim{
38239310Sdim	return (t->group_leader == current->group_leader);
39239310Sdim}
40239310Sdim
41239310Sdim#endif /* SPL_PROC_H */
42239310Sdim