http://prdownloads.sourceforge.net/lufs/lufs-0.9.6.tar.gz?download
[lufs.git] / kernel / Linux / 2.5 / proc.h
1 /*
2  * proc.h
3  * Copyright (C) 2002 Florin Malita <mali@go.ro>
4  *
5  * This file is part of LUFS, a free userspace filesystem implementation.
6  * See http://lufs.sourceforge.net/ for updates.
7  *
8  * LUFS is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * LUFS is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
21  */
22
23 #ifndef _LU_PROC_H_
24 #define _LU_PROC_H_
25
26 #include <linux/types.h>
27 #include <linux/list.h>
28 #include <linux/socket.h>
29
30 struct server_slot{
31     struct socket       *s_sock;
32     struct semaphore    s_lock;
33     struct list_head    s_list;
34     pid_t               s_lastpid;
35     char                *s_buf;
36 };
37
38 struct lufs_fattr;
39
40 int lu_execute(struct lufs_sb_info*, struct server_slot*, unsigned short, struct iovec*, unsigned short, struct iovec*, unsigned short);
41 void lu_empty_slots(struct lufs_sb_info*);
42 int lu_getname(struct dentry*, char*, int);
43 int lu_getname_dumb(struct dentry*, char*, int);
44 struct server_slot* lu_getslot(struct lufs_sb_info*);
45 void lu_putslot(struct server_slot*);
46 int lu_revalidate_inode(struct dentry*);
47 void lu_lookup_root(struct lufs_sb_info*, struct lufs_fattr*);
48 void lu_fixattrs(struct lufs_sb_info*, struct lufs_fattr*);
49 void lu_xlate_symlink(char*, char*, char*);
50
51 #endif