kernfs_node表示 kernfs 层次的构成部分(building block),每个 kernfs 节点由单个 kernfs_node 表示。大多数字段都是 kernfs 专用的,不应该由 kernfs 用户直接访问。 初始化的时候创建kernfs_node_cache的 cache,只有在函数__kernfs_new_node中使用。 有两个函数会调用: 1)kernfs_new_node; 2)sysfs_init通过kernf...
kernfs_node节点, 填充name, mode, uid, gid等信息kn=kernfs_new_node(parent,name,mode|S_IFDIR,uid,gid,KERNFS_DIR);...//维护的是层次结构相关的信息kn->dir.root=parent->dir.root;kn->ns=ns;kn->priv=priv;/* link in *///添加到rb tree中rc=kernfs_add_one(kn);if(!rc)returnkn;kernfs_...
struct kernfs_node *kn; u32 id_highbits; int ret; unsigned long irqflags;name = kstrdup_const(name, GFP_KERNEL); if (!name) @@ -619,13 +617,13 @@ static struct kernfs_node *__kernfs_new_node(struct kernfs_root *root, goto err_out1;idr...
node = &pos->rb.rb_right; else return -EEXIST; } /* add new node and rebalance the tree */ rb_link_node(&kn->rb, parent, node); rb_insert_color(&kn->rb, &kn->parent->dir.children); /* successfully added, account subdir number */ if (kernfs_type(kn) == ...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
XanMod: Linux kernel source code tree. Contribute to xanmod/linux development by creating an account on GitHub.
@@ -1599,7 +1599,7 @@ int kernfs_rename_ns(struct kernfs_node *kn, struct kernfs_node *new_parent, return error; }/* Relationship between s_mode and the DT_xxx types */ /* Relationship between mode and the DT_xxx types */ static inline unsigned char dt_type(struct kernfs_node *...
*kernfs_node_cache; static int kernfs_sop_remount_fs(struct super_block *sb, int *flags, char *data) { struct kernfs_root *root = kernfs_info(sb)->root; struct kernfs_syscall_ops *scops = root->syscall_ops; if (scops && scops->remount_fs) return scops->remount_fs...
Provide feedback We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up {...