mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-21 23:02:13 +08:00
nshlib: Add fdinfo to get information about the process associated fd
Signed-off-by: chenrun1 <chenrun1@xiaomi.com>
This commit is contained in:
@@ -234,6 +234,12 @@ static const struct cmdmap_s g_cmdmap[] =
|
||||
CMD_MAP("false", cmd_false, 1, 1, NULL),
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_FS_PROCFS
|
||||
# ifndef CONFIG_NSH_DISABLE_FDINFO
|
||||
CMD_MAP("fdinfo", cmd_fdinfo, 1, 2, "[pid]"),
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_NSH_DISABLE_FREE
|
||||
CMD_MAP("free", cmd_free, 1, 1, NULL),
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user