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
+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
}