summaryrefslogtreecommitdiff
path: root/include/rtservice.h
AgeCommit message (Collapse)Author
2025-06-25doxygen: group name all in lowcaseChen Wang
This patch only updated the groups defined in documentation/0.doxygen. Other groups will be moved into documentation/0.doxygen and updated at that time. Signed-off-by: Chen Wang <[email protected]>
2025-06-13修复单向列表移除节点时存在的安全风险.vandoul
Signed-off-by: vandoul <[email protected]>
2025-02-15doxygen: add prefix for groups (#9991)Chen Wang
* doxygen: add prefix for groups Add "group_" prefix to doxygen group names. This makes it easier to grep with group name later. This patch only modifies the groups defined in the pathes of INPUT of documentation/Doxyfile: INPUT = . \ ../src \ ../include \ ../components/finsh \ ../components/drivers/include/drivers \ ../components/drivers/clk \ ../components/dfs/dfs_v2/src \ ../components/dfs/dfs_v2/include Other groups are not touched. Signed-off-by: Chen Wang <[email protected]> * ci: fixed error report when run file_check.py Such as: - "please delete extra space at the end of this line." - "the RT-Thread error code should return negative value. e.g. return -RT_ERROR" Signed-off-by: Chen Wang <[email protected]> --------- Signed-off-by: Chen Wang <[email protected]>
2024-11-03feat: Added rt_interrupt_context* family for nested interrupt handlingShell
These changes introduce the rt_interrupt_context family, providing a mechanism for managing nested interrupts. The context management ensures proper storage and retrieval of interrupt states, improving reliability in nested interrupt scenarios by enabling context tracking across different interrupt levels. This enhancement is essential for platforms where nested interrupt handling is crucial, such as in real- time or multi-threaded applications. Changes: - Defined rt_interrupt_context structure with context and node fields in `rtdef.h` to support nested interrupts. - Added rt_slist_pop function in `rtservice.h` for simplified node removal in singly linked lists. - Declared rt_interrupt_context_push, rt_interrupt_context_pop, and rt_interrupt_context_get functions in `rtthread.h` to manage the interrupt/exception stack. - Modified AArch64 CPU support in `cpuport.h` to include rt_hw_show_register for debugging registers. - Refactored `_rt_hw_trap_irq` in `trap.c` for context-aware IRQ handling, with stack push/pop logic to handle nested contexts. - Implemented interrupt context push, pop, and retrieval logic in `irq.c` to manage context at the CPU level. Signed-off-by: Shell <[email protected]>
2024-02-19[kernel] fix some strict compiling warningsMeco Man
2024-01-02[kernel] support for hook listShell
Signed-off-by: Shell <[email protected]>
2023-11-06[kernel] ↵yanghuang
解决rt_slist_for_each_entry宏不能正常遍历slist链表中元素的问题 因rt_slist_for_each_entry宏不能正常调用,在实际开发中去循环再调用rt_slist_entry很不简洁,所以修改了rt_slist_for_each_entry宏中关于链表next的判空处理。目前相关代码在GD32系统的MCU上均能正常工作,相关应用也在生产产品中经过验证。
2023-02-01[doxygen] Fix some comments in rtservice.hbin
2022-05-25[include] fix comment for rt_container_ofrewine
2021-03-08[include] auto formattedMeco Man
2020-04-10[Kernel] Code cleanupBernard Xiong
2018-12-26Update rtservice.hOwen
更正为正确的Doxygen组定义语法
2018-10-14[license] Change license to Apache.Bernard Xiong
2018-09-14[Kernel] Update to Apache License v2.0Bernard Xiong
Update license for RT-Thread kernel.
2018-09-11[slist] Add rt_slist_tail and rt_slist_tail_entry for slist.armink
2018-07-11Add list iterators over list elementsLynx Zhou
Address the comments from armink@rt-thread
2018-07-04Add list iterators over list elementsLynx Zhou
Some non-gnu toolchains don't support gnu C extended keyword "typeof", like MDK (if no "gnu" option) and IAR, in this case we can provide list element manipulation macro functions to iterate over the list.
2018-06-27[rtservice] Add `rt_slist_first` and `rt_slist_next` API to slist.armink
2018-05-21Update rtservice.hbupleurum
2017-12-14[list]1.Modify rt_slist_foreach to rt_slist_for_each_entry. 2.Add ↵JasonJiaJie
rt_sllist_isempty. 3.Make code cleanup 1.Modify rt_slist_foreach to rt_slist_for_each_entry. 2.Add rt_sllist_isempty. 3.Make code cleanup
2017-11-05[RTSERVICE] Add rt_list_for_each_entry_safe macros definition.weety
2017-10-19[rtservice] Add `rt_list_len` and `rt_slist_len` to rtservice.h .armink
2017-10-15[Kernel] header filesbernard
1. Remove components.h file; 2. Add libc_* files for standard libc definitions; 3. Add rtdbg.h file for simple debug log; 4. Add single list implementation; 5. Change the 'rt_uint8_t' type of cmd to 'int'.
2017-04-09[Kernel] rename list_for_each/list_first_entry.Bernard Xiong
2016-05-20[Kernel] Add list_for_each_entry and list_frist_entry routine.Bernard Xiong
committed by FH.
2013-06-24Embedded GPLv2 license.Bernard Xiong
2012-10-13add __RT_SERVICE_H__ definition[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2347 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-09-05convert tabs to 4 spaces in rtservice.h[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2267 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-04-14Added memory heap object implementation; Added RT_LIST_OBJECT_INIT macro. [email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2046 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-03-22move src\kservice.h to include\rtservice.h.[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2005 bbd45198-f89e-11dd-88c7-29a3b14d5316