summaryrefslogtreecommitdiff
path: root/components
AgeCommit message (Collapse)Author
2025-01-08[drivers] merge the software i2c driverkurisaw
2025-01-08fix: add \n for addr2line hintMeco Man
2025-01-07[utest] 修复UTEST_UNIT_RUN嵌套宏时将宏直接输出的问题Meco Man
2025-01-07[utest] add float operatorsMeco Man
uassert_float_equal and uassert_float_not_equal
2025-01-06feat: Kconfig: collecting some config to sub-menuShell
To improve the readability of the menuconfig. Signed-off-by: Shell <[email protected]>
2025-01-06fixup: umount: set errno according to POSIXShell
According to the POSIX.1, we should give a EBUSY on umount(2) of busy filesystem. Signed-off-by: Shell <[email protected]>
2025-01-06feat: add support for dfs remount functionalityShell
This patch introduces a remount feature for the DFS, allowing for the modification of mount parameters without unmounting the filesystem, the remount functionality helps modify certain mount flags (like `MS_RDONLY`) without requiring an unmount, providing more control over mounted filesystems in the system. The updates is essential for user space init proc to cleanup the runtime resource, ensuring clean handling of cached data and enhancing system robustness during power down processing. Changes: - Defined new constants for remount flags in `dfs_fs.h`. - Added the `dfs_remount()` function in `dfs_fs.c` to handle remount operations. - Introduced a check for unsupported flags and handle error conditions such as invalid paths or non-directory targets. - Updated the `dfs_mnt` structure in `dfs_mnt.h` to include a read-only flag (`MNT_RDONLY`). - The `dfs_remount()` function allows changing the read-only status of a mounted filesystem. - Added `MNT_LAZY_UMNT` and `MNT_RDONLY` flags to `dfs_mnt` structure. - Introduced `dfs_mnt_setflags` function for dynamic flag management. - Updated `dfs_remount` to utilize `dfs_mnt_setflags` for flag setting. - Enhanced unmount operations with `dfs_mnt_umount_iter` and lazy unmounting. - Added `dfs_pcache_clean` to handle cache cleanup for read-only mounts. - Improved error reporting in `dfs_umount` for better user feedback. - Refactored `sys_mount` to streamline parameter handling and support remounts. - Introduced `_cp_from_usr_string` helper for user-space string operations. - Updated internal APIs to ensure consistency in reference count management. Signed-off-by: Shell <[email protected]>
2025-01-06feat: add system reboot and process teardown supportShell
The patch introduces support for system reboot functionality and process teardown, allowing for a clean shutdown and unmounting of the root filesystem. This is necessary for ensuring a proper system shutdown process, especially when dealing with resource cleanup and ensuring that all processes have exited before system shutdown. Changes: - Added `lwp_teardown()` function to handle process cleanup and system teardown. - Introduced `lwp_pid_wait_for_empty()` to wait for process ID table emptiness before proceeding with shutdown. - Updated `dfs_mnt_unref()` to trigger callbacks when unmounting a filesystem. - Added new reboot types (`RB_AUTOBOOT`, `RB_POWER_OFF`) and implemented their corresponding actions, including cleanup of processes and unmounting root filesystem. - Extended `sys_reboot()` to handle reboot and power off types with appropriate callbacks for process and filesystem teardown. - Introduced callback mechanism for root filesystem unmount notifications. Signed-off-by: Shell <[email protected]>
2025-01-06feat: add universal process runtime serviceShell
This change introduces the `lwp_runtime.c` component, which provides the necessary runtime environment for the init process, including boot scripts, shutdown, and poweroff functionalities. The initialization logic has been moved from `lwp.c` to this new file, enhancing modularity and flexibility in handling LWP runtime tasks. Changes: - Moved the `lwp_startup` function from `lwp.c` to `lwp_runtime.c` to handle system initialization and runtime environment setup. - Added `lwp_teardown` placeholder for system shutdown and cleanup tasks in the future (though not yet implemented). - Introduced the `LWP_USING_RUNTIME` configuration option in `Kconfig` to conditionally enable the runtime environment. - Updated the `SConscript` to conditionally include `lwp_runtime.c` based on the `LWP_USING_RUNTIME` configuration. - Removed the old `lwp_startup` code from `lwp.c`, simplifying the file. Signed-off-by: Shell <[email protected]>
2025-01-06feat: add signal kill all functionalityShell
This change introduces the `lwp_signal_kill_all` function, which allows a signal to be sent to all processes in the system. The function iterates over all PIDs and sends the specified signal to each process, except those that are protected from signals. This enhancement provides a convenient way to broadcast signals across all processes in the system. Changes: - Added `lwp_signal_kill_all` function in `lwp_signal.c` to broadcast a signal to all processes by iterating over all PIDs using the existing `lwp_pid_for_each` function. - Introduced a new `kill_all_param` structure to encapsulate the signal information needed for killing processes. - Added internal `_kill_each` helper function for sending the signal to each PID. - Updated `lwp_signal.h` with the new function prototype for `lwp_signal_kill_all`. - Modified `sys_kill` in `lwp_syscall.c` to call `lwp_signal_kill_all` when a process is not specified. Signed-off-by: Shell <[email protected]>
2025-01-06feat: support PID iterationShell
This change introduces the `lwp_pid_for_each` function, which provides a convenient and thread-safe method for iterating over PIDs with a user- defined callback. This addition is necessary to support cases where operations must be performed on each PID in the balanced tree, enhancing flexibility and modularity for PID management. Changes: - Added `lwp_pid_for_each` function in `lwp_pid.c` to allow iteration over PIDs using a callback function and optional data parameter. - Defined a new internal `pid_foreach_param` structure to encapsulate the callback and data for the iteration. - Added `_before_cb` helper function for executing the callback on each PID node during AVL traversal. - Ensured thread safety by acquiring and releasing the PID lock around the AVL traversal within `lwp_pid_for_each`. - Updated `lwp_pid.h` with the `lwp_pid_for_each` function prototype and included `rtthread.h` for necessary types. Signed-off-by: Shell <[email protected]>
2025-01-05[wq][fix]工作队列默认使用C99标准实现遍历Rbb666
2025-01-05[wlan] add ap_get_info api for more ap informationEvlers
2025-01-03[utest] add rt_memset test caseMeco Man
2025-01-03[romfs/dfs_romfs.c] _rom_fops add ioctlyuqingli
2025-01-03[AT] AT_Device 适配 SERIAL_V2 (#9860)dongly
AT_Device 适配 SERIAL_V2
2025-01-02删除 RT_EBUSY 返回值注释yuqingli
2025-01-02[ipc/workqueue.c] 删除无用的判断yuqingli
2025-01-02[ipc/workqueue.c] delete timer, using list.yuqingli
2025-01-01修复编译过程中的 DFS_V2报错、FAL警告yuqingli05
2025-01-01update(cherryusb): update to v1.4.2sakumisu
Signed-off-by: sakumisu <[email protected]>
2024-12-30components: drivers: add RT_USING_SMP judgement inside smp_call.hChen Wang
smp_call.h defines SMP-related structures and declares SMP-related functions. These codes are only valid when RT_USING_SMP is defined in the bsp, which means we have to use RT_USING_SMP for judgment in every place where this file is included, such as following: ```c ``` Now move the judgment of RT_USING_SMP directly into smp_call.h, so that it's simpler to include the header file as: ```c ``` Signed-off-by: Chen Wang <[email protected]>
2024-12-27[include] RT_USING_MUSLLIBC结构体报错的bug (#9834)godmial
解决了gd32470z-lckfb libc_dirent结构体报错的bug
2024-12-27[DM/BLOCK] Fixup DFS partition memory leakGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2024-12-26[wlan] add get_info api for more new sta informationEvlers
2024-12-25add support for independent dns services for multiple network devicesEvlers
2024-12-24[utest] implement uassert_ptr_equal and uassert_ptr_not_equalMeco Man
2024-12-24[libc] uncomment wcwidth for win32Meco Man
2024-12-23Specification of rtc synchronization functionskurisaw
2024-12-22[dm2.0] add general sdhci driver it support pio&&sdmazhujiale
2024-12-21[utest] optimize the utest to support new CIMeco Man
2024-12-21[klibc] format codeMeco Man
2024-12-20kernel: cleanup debug APIsChen Wang
- `dbg_log` is a “NOT RECOMMENDED API”, convert the calling of this API to LOG_x and remove this API. - `dbg_here`/`dbg_enter`/`dbg_exit`: no one use these APIs, remove them directly. Signed-off-by: Chen Wang <[email protected]>
2024-12-18[components][libc/io]add comments for timer fd APIs.ligr
2024-12-18[DM/PIC] Support AMP modeGuEe-GUI
Only support on >= ARM GICv2 Signed-off-by: GuEe-GUI <[email protected]>
2024-12-18[DM/MAILBOX] Support PIC mailbox in AMPGuEe-GUI
Should registers clean by master in AMP. Signed-off-by: GuEe-GUI <[email protected]>
2024-12-18[DFS/FIXUP] Fixup ISO9660 buildGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2024-12-17[serial] add bypass testcase in utestzhujiale
2024-12-17[serial] add bypass hook to direct processing char when uart irq comingzhujiale
2024-12-14[OFW] Delete redundant strcasecmp functionwumingzi
2024-12-13[drivers][rtc] Fixed software and hardware rtc device naming as rtckurisaw
2024-12-13[DM/FIXUP] Fixup block value initGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2024-12-13[DM/FIXUP] Fixup PIC ktime dependsGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2024-12-13[BSP/FIXUP] remove old reset drivers for RK3500GuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2024-12-13[DM/FIXUP] Fixup NVME buildGuEe-GUI
1. Fixup Kconfig show order. 2. Fix `RT_DECLARE_IRQ_AFFINITY` to `RT_IRQ_AFFINITY_DECLARE` 3. Remove warning. Signed-off-by: GuEe-GUI <[email protected]>
2024-12-13[DM/FIXUP] Fixup PCI buildGuEe-GUI
1. Add PCI include in rtdevice.h 2. Fixup `RT_KEY_ENABLED` loss. 3. remove waring type of `dw_pcie_ep_get_func_from_ep` return. Signed-off-by: GuEe-GUI <[email protected]>
2024-12-13[DM/FIXUP] Fixup bitmap to new typeGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2024-12-13[DM/FIXUP] include name defaultGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2024-12-12[lwp] fix TTYSUP_CFLAG did not include CBAUD flagzhujiale
2024-12-09[componets] fix when printf 0 addr by %p will return nilzhujiale