1 #ifndef _LINUX_FS_STRUCT_H
2 #define _LINUX_FS_STRUCT_H
4 #include <linux/path.h>
5 #include <linux/spinlock.h>
6 #include <linux/seqlock.h>
14 struct path root
, pwd
;
17 extern struct kmem_cache
*fs_cachep
;
19 extern void exit_fs(struct task_struct
*);
20 extern void set_fs_root(struct fs_struct
*, struct path
*);
21 extern void set_fs_pwd(struct fs_struct
*, struct path
*);
22 extern struct fs_struct
*copy_fs_struct(struct fs_struct
*);
23 extern void free_fs_struct(struct fs_struct
*);
24 extern void daemonize_fs_struct(void);
25 extern int unshare_fs_struct(void);
27 static inline void get_fs_root(struct fs_struct
*fs
, struct path
*root
)
32 spin_unlock(&fs
->lock
);
35 static inline void get_fs_pwd(struct fs_struct
*fs
, struct path
*pwd
)
40 spin_unlock(&fs
->lock
);
43 static inline void get_fs_root_and_pwd(struct fs_struct
*fs
, struct path
*root
,
51 spin_unlock(&fs
->lock
);
54 #endif /* _LINUX_FS_STRUCT_H */
This page took 0.047971 seconds and 5 git commands to generate.