yf13 commented on code in PR #12041: URL: https://github.com/apache/nuttx/pull/12041#discussion_r1569790992
########## include/nuttx/addrenv.h: ########## @@ -193,7 +193,9 @@ # define ARCH_SHM_MAXPAGES (CONFIG_ARCH_SHM_NPAGES * CONFIG_ARCH_SHM_MAXREGIONS) # define ARCH_SHM_REGIONSIZE (CONFIG_ARCH_SHM_NPAGES * CONFIG_MM_PGSIZE) # define ARCH_SHM_SIZE (CONFIG_ARCH_SHM_MAXREGIONS * ARCH_SHM_REGIONSIZE) Review Comment: By adding one UDEV_NPAGES option, we can keep most SHM_xxx unchanged, and `device mapping` and `SHM` can be two indenpendent choices, this sounds more flexible. There is no other `UDEV_xxx` stuffs needed. Yet another reason for not simply renaming SHM_xxx to be more general as the SHM region structure is very specific to SHM, which can not be simply renamed to general purpose. Keeping most SHM_xxx unchanged also reduces concerns from existing SHM feature users. ########## include/nuttx/addrenv.h: ########## @@ -193,7 +193,9 @@ # define ARCH_SHM_MAXPAGES (CONFIG_ARCH_SHM_NPAGES * CONFIG_ARCH_SHM_MAXREGIONS) # define ARCH_SHM_REGIONSIZE (CONFIG_ARCH_SHM_NPAGES * CONFIG_MM_PGSIZE) # define ARCH_SHM_SIZE (CONFIG_ARCH_SHM_MAXREGIONS * ARCH_SHM_REGIONSIZE) Review Comment: By adding one UDEV_NPAGES option, we can keep most SHM_xxx unchanged, and `device mapping` and `SHM` can be two indenpendent choices, this sounds more flexible. There is no other `UDEV_xxx` stuffs needed. Yet another reason for not simply renaming SHM_xxx to be more general as the SHM region structure is very specific to SHM, which can not be simply renamed to general purpose. Keeping most SHM_xxx unchanged also reduces concerns from existing SHM users. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
