MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / proc_register

Function proc_register

components/dfs/dfs_v2/filesystems/procfs/proc.c:280–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280static struct proc_dentry *proc_register(struct proc_dentry *parent, struct proc_dentry *child)
281{
282 child->parent = parent;
283 dfs_vfs_append_node(&parent->node, &child->node);
284 child->ref_count += 1;
285 child->pid = parent->pid;
286
287 return child;
288}
289
290/**
291 * @brief Make a dir

Callers 4

proc_mkdir_dataFunction · 0.85
proc_create_dataFunction · 0.85
proc_create_single_dataFunction · 0.85
proc_symlinkFunction · 0.85

Calls 1

dfs_vfs_append_nodeFunction · 0.85

Tested by

no test coverage detected