]> bbs.cooldavid.org Git - net-next-2.6.git/blame - include/linux/fs_struct.h
Take fs_struct handling to new file (fs/fs_struct.c)
[net-next-2.6.git] / include / linux / fs_struct.h
CommitLineData
1da177e4
LT
1#ifndef _LINUX_FS_STRUCT_H
2#define _LINUX_FS_STRUCT_H
3
6ac08c39 4#include <linux/path.h>
1da177e4
LT
5
6struct fs_struct {
795e2fe0
DH
7 atomic_t count; /* This usage count is used by check_unsafe_exec() for
8 * security checking purposes - therefore it may not be
9 * incremented, except by clone(CLONE_FS).
10 */
1da177e4
LT
11 rwlock_t lock;
12 int umask;
7f2da1e7 13 struct path root, pwd;
1da177e4
LT
14};
15
aa362a83
CL
16extern struct kmem_cache *fs_cachep;
17
1da177e4 18extern void exit_fs(struct task_struct *);
ac748a09
JB
19extern void set_fs_root(struct fs_struct *, struct path *);
20extern void set_fs_pwd(struct fs_struct *, struct path *);
1da177e4
LT
21extern struct fs_struct *copy_fs_struct(struct fs_struct *);
22extern void put_fs_struct(struct fs_struct *);
3e93cd67
AV
23extern void daemonize_fs_struct(void);
24extern int unshare_fs_struct(void);
1da177e4
LT
25
26#endif /* _LINUX_FS_STRUCT_H */