You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by pk...@apache.org on 2022/09/01 21:26:00 UTC

[incubator-nuttx] branch master updated (63cd44e5e1 -> fb0cb6f270)

This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


    from 63cd44e5e1 net/usrsock: forward FIONBIO to socket level
     new 27985fa639 fs: procfs: Skip to register for meminfo if the name is NULL
     new fb0cb6f270 mm: umm_heap: Do not register Umem if CONFIG_BUILD_KERNEL=y

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 fs/procfs/fs_procfsmeminfo.c | 5 +++++
 mm/umm_heap/umm_initialize.c | 4 ++++
 2 files changed, 9 insertions(+)


[incubator-nuttx] 02/02: mm: umm_heap: Do not register Umem if CONFIG_BUILD_KERNEL=y

Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit fb0cb6f270ee746739dacc46381192c2bfc998f9
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Thu Sep 1 15:44:02 2022 +0900

    mm: umm_heap: Do not register Umem if CONFIG_BUILD_KERNEL=y
    
    Summary:
    - In the case of CONFIG_BUILD_KERNEL=y, showing Kmem and Page
      info is enough for free command
    
    Impact:
    - CONFIG_BUILD_KERNEL=y only
    
    Testing:
    - Tested with sabre-6quad:netknsh
    
    Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
 mm/umm_heap/umm_initialize.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/mm/umm_heap/umm_initialize.c b/mm/umm_heap/umm_initialize.c
index 1eb726e669..4e96e23979 100644
--- a/mm/umm_heap/umm_initialize.c
+++ b/mm/umm_heap/umm_initialize.c
@@ -81,7 +81,11 @@
 
 void umm_initialize(FAR void *heap_start, size_t heap_size)
 {
+#ifdef CONFIG_BUILD_KERNEL
+  USR_HEAP = mm_initialize(NULL, heap_start, heap_size);
+#else
   USR_HEAP = mm_initialize("Umem", heap_start, heap_size);
+#endif
 }
 
 /****************************************************************************


[incubator-nuttx] 01/02: fs: procfs: Skip to register for meminfo if the name is NULL

Posted by pk...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 27985fa639d8c1d4babe981d3c44e99a27efabb3
Author: Masayuki Ishikawa <ma...@gmail.com>
AuthorDate: Thu Sep 1 09:47:30 2022 +0900

    fs: procfs: Skip to register for meminfo if the name is NULL
    
    Summary:
    - This commit skips to register for meminfo if the name is NULL
    
    Impact:
    - None
    
    Testing:
    - Tested with sabre-6quad:netknsh (umm_heap will be updated later)
    
    Signed-off-by: Masayuki Ishikawa <Ma...@jp.sony.com>
---
 fs/procfs/fs_procfsmeminfo.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/fs/procfs/fs_procfsmeminfo.c b/fs/procfs/fs_procfsmeminfo.c
index 1c35ed972e..49d55ea795 100644
--- a/fs/procfs/fs_procfsmeminfo.c
+++ b/fs/procfs/fs_procfsmeminfo.c
@@ -578,6 +578,11 @@ static int meminfo_stat(FAR const char *relpath, FAR struct stat *buf)
 
 void procfs_register_meminfo(FAR struct procfs_meminfo_entry_s *entry)
 {
+  if (NULL == entry->name)
+    {
+      return;
+    }
+
   entry->next = g_procfs_meminfo;
   g_procfs_meminfo = entry;
 }