Add vnode ops to subdirs of sysfs

This commit is contained in:
Mark
2020-07-05 20:25:53 +03:00
parent cdc61fc168
commit cf837f6874
+1
View File
@@ -172,6 +172,7 @@ int sysfs_add_dir(struct vnode *at, const char *name, struct vnode **res) {
kdebug("Can't find %s in %s, creating\n", name, at->name);
tmp = vnode_create(VN_DIR, name);
tmp->flags |= VN_MEMORY;
tmp->op = &g_sysfs_vnode_ops;
tmp->mode = S_IXUSR | S_IXGRP | S_IXOTH |
S_IRUSR | S_IRGRP | S_IROTH;