X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/a36758a5018f6a3792c164cd2a313d4f61b7111e..6f6da1abb22dff69dbb710bd2fd9d95f083f2b43:/lunaix-os/kernel/process/taskfs.c diff --git a/lunaix-os/kernel/process/taskfs.c b/lunaix-os/kernel/process/taskfs.c index 7534703..36ed5ee 100644 --- a/lunaix-os/kernel/process/taskfs.c +++ b/lunaix-os/kernel/process/taskfs.c @@ -1,4 +1,3 @@ -#include #include #include #include @@ -8,6 +7,8 @@ #include #include +#include + #define COUNTER_MASK ((1 << 16) - 1) static struct hbucket* attr_export_table; @@ -128,7 +129,7 @@ taskfs_dirlookup(struct v_inode* this, struct v_dnode* dnode) return ENOENT; } - return taskfs_mknod(dnode, pid, 0, VFS_IFDIR); + return taskfs_mknod(dnode, pid, 0, F_FILE); } static struct v_file_ops taskfs_file_ops = { .close = default_file_close, @@ -225,4 +226,5 @@ taskfs_init() attr_export_table = vcalloc(ATTR_TABLE_LEN, sizeof(struct hbucket)); export_task_attr(); -} \ No newline at end of file +} +EXPORT_FILE_SYSTEM(taskfs, taskfs_init); \ No newline at end of file