MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_object_get_information

Function rt_object_get_information

src/object.c:249–260  ·  view source on GitHub ↗

* @brief This function will return the specified type of object information. * * @param type is the type of object, which can be * RT_Object_Class_Thread/Semaphore/Mutex... etc * * @return the object type information or RT_NULL */

Source from the content-addressed store, hash-verified

247 * @return the object type information or RT_NULL
248 */
249struct rt_object_information *
250rt_object_get_information(enum rt_object_class_type type)
251{
252 int index;
253
254 type = (enum rt_object_class_type)(type & ~RT_Object_Class_Static);
255
256 for (index = 0; index < RT_Object_Info_Unknown; index ++)
257 if (_object_container[index].type == type) return &_object_container[index];
258
259 return RT_NULL;
260}
261RTM_EXPORT(rt_object_get_information);
262
263/**

Callers 15

list_find_initFunction · 0.85
rt_raw_channel_openFunction · 0.85
list_channelFunction · 0.85
lwp_session_findFunction · 0.85
lwp_pgrp_findFunction · 0.85
rt_dm_device_findFunction · 0.85
sensorFunction · 0.85
blk_dfs_mnt_tableFunction · 0.85
list_blkFunction · 0.85
list_moduleFunction · 0.85
dfs_device_fs_openFunction · 0.85
list_find_initFunction · 0.85

Calls

no outgoing calls

Tested by 1