mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 17:33:08 +08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user