Commit | Line | Data |
---|---|---|
1da177e4 LT |
1 | #ifndef _LINUX_FS_STRUCT_H |
2 | #define _LINUX_FS_STRUCT_H | |
3 | ||
6ac08c39 | 4 | #include <linux/path.h> |
1da177e4 LT |
5 | |
6 | struct fs_struct { | |
7 | atomic_t count; | |
8 | rwlock_t lock; | |
9 | int umask; | |
7f2da1e7 | 10 | struct path root, pwd; |
1da177e4 LT |
11 | }; |
12 | ||
aa362a83 CL |
13 | extern struct kmem_cache *fs_cachep; |
14 | ||
1da177e4 | 15 | extern void exit_fs(struct task_struct *); |
ac748a09 JB |
16 | extern void set_fs_root(struct fs_struct *, struct path *); |
17 | extern void set_fs_pwd(struct fs_struct *, struct path *); | |
1da177e4 LT |
18 | extern struct fs_struct *copy_fs_struct(struct fs_struct *); |
19 | extern void put_fs_struct(struct fs_struct *); | |
20 | ||
21 | #endif /* _LINUX_FS_STRUCT_H */ |