summaryrefslogtreecommitdiff
path: root/src/object.c
AgeCommit message (Collapse)Author
2023-05-17[include][src] Add API to get object name and thread name (#7507)Fan Yang
Signed-off-by: Fan YANG <[email protected]> Co-authored-by: Man, Jianting (Meco) <[email protected]>
2023-01-19[doxygen][src] Fix the comment in rt_custom_object_createsupperthomas
Signed-off-by: supperthomas <[email protected]>
2022-12-20[kenel] add static name for rt_object (#6422)Man, Jianting (Meco)
增加静态object 名字,用户可以根据内存实际使用情况决定使用动态还是静态。适用于资源极度受限的情况下使用。该功能在RT-Thread完整版本中不常用,主要用于RT-Thread Nano,以缩减对内存的占用。由于没有动态拼接支持,在静态名字下,空闲线程的名字在多核时将命名成相同的名字。
2022-12-16[rt-smart] 弱化 RT_USING_LWP,使用 RT_USING_SMART 作为宏配置 (#6740)guo
* [dfs] sync cromfs * [rt-smart]Weaken RT_USING_LWP, use RT_USING_SMART as macro configuration * [format] fix some format issue.
2022-12-03sync branch rt-smart. (#6641)guo
* Synchronize the code of the rt mart branch to the master branch. * TTY device * Add lwP code from rt-smart * Add vnode in DFS, but DFS will be re-write for rt-smart * There are three libcpu for rt-smart: * arm/cortex-a, arm/aarch64 * riscv64 Co-authored-by: Rbb666 <[email protected]> Co-authored-by: zhkag <[email protected]>
2022-11-21Revert "[kernel] 修正复制name字段时潜在的内存踩踏问题"Man, Jianting (Meco)
This reverts commit 2d17fe736f79860237d8a05c57f9aabcfdab4c87.
2022-11-14[kernel] 修正复制name字段时潜在的内存踩踏问题Meco Man
2022-10-08remove unused code to improve speedFrank Buss
The RT_ASSERT(obj != object) line is only compiled for debug mode. But the rt_enter/exit_critical causes the compiler not to optimize at least these 2 calls, even if it could optimize out the whole loop, because the rt_list_entry function has no side effect, and RT_ASSET is a no-operation in release mode. So this patch fixes this: - no warnings anymore - better speed in release mode
2022-04-20uniform code writing-disable interruptthewon86
2022-01-08change all double-empty-lines to single-empty-linesGabriel Wang
2022-01-07move some __on_rt_xxxxx_hook from rtdef.h to dedicated c soure filesGabriel Wang
2021-12-16分离内存分配接口与内存分配算法 (#5175)Tangyuxin
* [kernel][mem] Multiple instances of small memory allocation algorithm * [kernel][mem] Change small memory management algorithm memory header flag * [kernel][mem] Fix assertion problem * [kernel][slab] Multiple instances of slab memory management algorithm * [kernel][memheap] Remove rt_malloc/rt_free/rt_realloc and other related memory interfaces * [kernel][mem] Clean up memory space of small memory management objects * [kernel][kservice] Add memory application interface and thread protection interface * [kernel][kservice] Fix function return value problem * [kernel][memheap] Optimize memheaptrace print * [kernel][memheap] Support best mode * [kernel][memory] Remove semaphore lock * [kernel][memheap] Add locked flag * [kernel][memory] Support malloc memory in interrupt * [kernel][memheap] Add 'memheapcheck' cmd * [kernel][mem] Fix failure to request full memory * [kernel][memheap] Fix compilation warning * [kernel][mem] Fix mem realloc ASSERT * [examples][testcases] Add small mem testcase * [examples][mem_tc] Modify test memory size * [examples][testcases] Add slab memory management algorithm test case * [examples][testcases] fix small memory management algorithm test case * [kernel][memory] Adjusting memory allocation algorithm object definition and interface * [kernel][memory] Fix compilation warning * [examples][utest] Fix mem test case * [examples][utest] fix slab test case * [utest][testcases] Shorten test time * [kernel][memory] Formatting code * [examples][utest] Adjust test run time * [examples][utest] Formatting code * [bsp] update all rtconfig.h
2021-09-11[kernel] update commentsyangjie
2021-09-10[kernel]Normalized kernel API annotationyangjie
2021-08-06[kernel] 规范内部函数命名Meco Man
2021-06-10[kernel] 补充endif后缀注释(3)Meco Man
2021-03-08[kernel]auto formattedMeco Man
2020-11-24Merge pull request #4081 from mysterywolf/rt_object_deleteBernard Xiong
[kernel] rt_object_delete函数优化重置object->type
2020-11-24[kernel] rt_object_delete函数优化重置object->typeMeco Man
object->type = 0; 改为 object->type = RT_Object_Class_Null; 一个东西,但是提高源码可读性
2020-11-23【优化】在代码中移除 rt_system_object_init/rt_system_tick_init ↵guozhanxin
的调用。
2020-05-17[Kernel] Fix the maxlen issue in rt_object_get_pointersBernard Xiong
2020-04-10[Kernel] Add rt_object_get_length/rt_object_get_pointers APIs.Bernard Xiong
2019-06-07[kernel] skip warning when disable debug.Bernard Xiong
2019-04-02[Kernel] To check object re-initialization in the listBernard Xiong
2019-03-26[Kernel] Add object re-initialization check.BernardXiong
2018-09-25[Kernel] Adjust the copyright informationBernard Xiong
2018-09-14[Kernel] Update to Apache License v2.0Bernard Xiong
Update license for RT-Thread kernel.
2018-08-30[Kernel] move module tolibc/libdl.Bernard Xiong
2018-07-11[kernel] add rt_object_get_type() function who return type of object without ↵liang yongxiang
static flag
2018-07-11[kernel] reset type when object delete or detachliang yongxiang
2018-06-10[Kernel] Remove memory ops when SLAB and module enableBernard Xiong
2018-06-10[Kernel] Remove object container in module feature.Bernard Xiong
2018-01-25[Kernel] Fix the object find issue when enable MODULEBernard Xiong
2017-12-31[Kernel] fix the compiling warning.BernardXiong
2017-12-25[Kernel] fix the object container initialization issueBernard Xiong
2017-12-24[Kernel] Add device_create/destroy apiBernard Xiong
2017-09-15根据documentation/coding_style_cn.txt约定 ↵emlslxl
对内核src和include目录下的文件代码进行格式化
2016-08-19Correct comments about doxygen formatdogandog
chang /*@{*/ to /**@{*/ and /*@}*/ to /**@}*/
2015-08-03[Kernel] Fix compiling warning.Bernard Xiong
2014-12-24object: fix module name testingGrissiom
2014-07-21[Kernel] The rt_object_find routine can support to find an object inside a ↵bernard
module. The usage is: rt_object_find("module_name/object_name").
2013-06-24Embedded GPLv2 license.Bernard Xiong
2013-04-25add RT_KERNEL_MALLOC/FREEBernard Xiong
2012-12-25fixed the coding style in object.c[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2521 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-08-27split export symbols from rtm.c to each file[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2263 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-08-01there is no need to type cast for "object"[email protected]
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2242 bbd45198-f89e-11dd-88c7-29a3b14d5316
2012-06-02change the return type of function rt_object_is_systemobject()[email protected]
using rt_bool_t instead of rt_err_t git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2150 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
2012-03-17unify the coding style of kerneldzzxzz
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1998 bbd45198-f89e-11dd-88c7-29a3b14d5316