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

Function msh_proc_echo

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

Source from the content-addressed store, hash-verified

689MSH_CMD_EXPORT_ALIAS(msh_proc_symlink, proc_symlink, proc symlink);
690
691static int msh_proc_echo(int argc, char** argv)
692{
693 if (argc > 1)
694 {
695 for(int i = 1; i <= argc - 1; i ++)
696 {
697 struct proc_dentry *entry = proc_create_data(argv[i], 0, 0, 0, 0);
698 if (entry)
699 {
700 proc_release(entry);
701 }
702 }
703 }
704 else
705 {
706 rt_kprintf("proc_echo path\n");
707 }
708
709 return 0;
710}
711MSH_CMD_EXPORT_ALIAS(msh_proc_echo, proc_echo, proc echo);
712
713static int msh_proc_mkdir(int argc, char** argv)

Callers

nothing calls this directly

Calls 3

proc_create_dataFunction · 0.85
proc_releaseFunction · 0.85
rt_kprintfFunction · 0.85

Tested by

no test coverage detected