OS modules: Add basic procfs support. A module registry that will eventually be used to support lsmod

This commit is contained in:
Gregory Nutt
2015-12-12 17:42:25 -06:00
parent a908a61c5a
commit 795ddd7e80
15 changed files with 910 additions and 92 deletions
+5
View File
@@ -77,6 +77,7 @@
extern const struct procfs_operations proc_operations;
extern const struct procfs_operations cpuload_operations;
extern const struct procfs_operations module_operations;
extern const struct procfs_operations uptime_operations;
/* This is not good. These are implemented in other sub-systems. Having to
@@ -119,6 +120,10 @@ static const struct procfs_entry_s g_procfs_entries[] =
{ "cpuload", &cpuload_operations },
#endif
#if defined(CONFIG_MODULE) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MODULE)
{ "modules", &module_operations },
#endif
#if defined(CONFIG_FS_SMARTFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_SMARTFS)
//{ "fs/smartfs", &smartfs_procfsoperations },
{ "fs/smartfs**", &smartfs_procfsoperations },