s/procfs: The procfs file system can now be configured so that it supports a runtime registration of procfs entries with CONFIG_FS_PROCFS_REGISTER=y

This commit is contained in:
Gregory Nutt
2015-12-01 14:56:20 -06:00
parent c16648b3fd
commit ad64c033e7
5 changed files with 172 additions and 37 deletions
+6
View File
@@ -11189,3 +11189,9 @@
* net/: Remove CONFIG_NET_PINGADDRCONF. This was a uIP way of assigning
IP addresses, but is not standard and not a appropriate feature in
general (2015-12-01).
* fs/procfs: The procfs file system can now be configured so that it
supports a runtime registration of procfs entries with
CONFIG_FS_PROCFS_REGISTER=y (2015-12-01).
* arch/arm/src/stm32/stm32_ccm_procfs.c: Is no longer a part of the
'base' procfs entries and can now only be supported via run time
registration with CONFIG_FS_PROCFS_REGISTER=y (2015-12-01).
+1 -1
Submodule arch updated: 350314f22d...0dc110a8fa
+7 -5
View File
@@ -15,6 +15,13 @@ config FS_PROCFS
if FS_PROCFS
config FS_PROCFS_REGISTER
bool "Run-time registration"
default n
---help---
Support run-time registration of the new entries in the procfs file
system.
menu "Exclude individual procfs entries"
config FS_PROCFS_EXCLUDE_PROCESS
@@ -59,10 +66,5 @@ config FS_PROCFS_EXCLUDE_SMARTFS
depends on FS_SMARTFS
default n
config FS_PROCFS_EXCLUDE_CCM
bool "Exclude CCM memory usage"
depends on STM32_CCM_PROCFS
default n
endmenu #
endif # FS_PROCFS
+140 -31
View File
File diff suppressed because it is too large Load Diff
+18
View File
@@ -180,6 +180,24 @@ size_t procfs_memcpy(FAR const char *src, size_t srclen,
FAR char *dest, size_t destlen,
off_t *offset);
/****************************************************************************
* Name: procfs_register
*
* Description:
* Add a new entry to the procfs file system.
*
* Input Parameters:
* entry - Describes the entry to be registered.
*
* Returned Value:
* Zero (OK) on success; a negated errno value on failure
*
****************************************************************************/
#ifdef CONFIG_FS_PROCFS_REGISTER
int procfs_register(FAR const struct procfs_file_s *entry);
#endif
#undef EXTERN
#ifdef __cplusplus
}