oprofile: sampling works
[akaros.git] / kern / include / vfs.h
index 06bbfba..7d3967b 100644 (file)
@@ -380,6 +380,7 @@ struct file_desc {
 /* All open files for a process */
 struct files_struct {
        spinlock_t                                      lock;
+       bool                                            closed;
        int                                                     max_files;              /* max files ptd to by fd */
        int                                                     max_fdset;              /* max of the current fd_set */
        int                                                     next_fd;                /* next number available */
@@ -485,8 +486,13 @@ int do_chdir(struct fs_struct *fs_env, char *path);
 char *do_getcwd(struct fs_struct *fs_env, char **kfree_this, size_t cwd_l);
 
 /* Debugging */
+void print_kstat(struct kstat *kstat);
 int ls_dash_r(char *path);
 extern struct inode_operations dummy_i_op;
 extern struct dentry_operations dummy_d_op;
 
+int put_fd(struct files_struct *open_files, int file_desc);
+int get_fd(struct files_struct *open_files, int low_fd);
+int claim_fd(struct files_struct *open_files, int file_desc);
+
 #endif /* ROS_KERN_VFS_H */