fs_struct.h 598 B

123456789101112131415161718192021222324
  1. #ifndef _LINUX_FS_STRUCT_H
  2. #define _LINUX_FS_STRUCT_H
  3. #include <linux/path.h>
  4. struct fs_struct {
  5. int users;
  6. rwlock_t lock;
  7. int umask;
  8. int in_exec;
  9. struct path root, pwd;
  10. };
  11. extern struct kmem_cache *fs_cachep;
  12. extern void exit_fs(struct task_struct *);
  13. extern void set_fs_root(struct fs_struct *, struct path *);
  14. extern void set_fs_pwd(struct fs_struct *, struct path *);
  15. extern struct fs_struct *copy_fs_struct(struct fs_struct *);
  16. extern void free_fs_struct(struct fs_struct *);
  17. extern void daemonize_fs_struct(void);
  18. extern int unshare_fs_struct(void);
  19. #endif /* _LINUX_FS_STRUCT_H */