mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
Fix problem in last change to the procfs: Forgot to save the reallocated table pointer!
Also added warnings: There are some concurrency issues in the current implementation if you try to modify the procfs data structures will the procfs is mounted and possibly busy.
This commit is contained in:
@@ -186,6 +186,10 @@ size_t procfs_memcpy(FAR const char *src, size_t srclen,
|
||||
* Description:
|
||||
* Add a new entry to the procfs file system.
|
||||
*
|
||||
* NOTE: This function should be called *prior* to mounting the procfs
|
||||
* file system to prevent concurrency problems with the modification of
|
||||
* the procfs data set while it is in use.
|
||||
*
|
||||
* Input Parameters:
|
||||
* entry - Describes the entry to be registered.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user