Home
last modified time | relevance | path

Searched refs:sentinelNode (Results 1 – 2 of 2) sorted by relevance

/kernel/liteos_a/kernel/base/mem/tlsf/
Dlos_memory.c250 …TIC INLINE struct OsMemNodeHead *OsMemLastSentinelNodeGet(const struct OsMemNodeHead *sentinelNode) in OsMemLastSentinelNodeGet() argument
253 VOID *ptr = sentinelNode->ptr.next; in OsMemLastSentinelNodeGet()
254 UINT32 size = OS_MEM_NODE_GET_SIZE(sentinelNode->sizeAndFlag); in OsMemLastSentinelNodeGet()
265 STATIC INLINE BOOL OsMemSentinelNodeCheck(struct OsMemNodeHead *sentinelNode) in OsMemSentinelNodeCheck() argument
267 if (!OS_MEM_NODE_GET_USED_FLAG(sentinelNode->sizeAndFlag)) { in OsMemSentinelNodeCheck()
271 if (!OS_MEM_MAGIC_VALID(sentinelNode)) { in OsMemSentinelNodeCheck()
278 STATIC INLINE BOOL OsMemIsLastSentinelNode(struct OsMemNodeHead *sentinelNode) in OsMemIsLastSentinelNode() argument
280 if (OsMemSentinelNodeCheck(sentinelNode) == FALSE) { in OsMemIsLastSentinelNode()
285 if ((OS_MEM_NODE_GET_SIZE(sentinelNode->sizeAndFlag) == 0) || in OsMemIsLastSentinelNode()
286 (sentinelNode->ptr.next == NULL)) { in OsMemIsLastSentinelNode()
[all …]
/kernel/liteos_m/kernel/src/mm/
Dlos_memory.c327 …TIC INLINE struct OsMemNodeHead *OsMemLastSentinelNodeGet(const struct OsMemNodeHead *sentinelNode) argument
330 VOID *ptr = sentinelNode->ptr.next;
331 UINT32 size = OS_MEM_NODE_GET_SIZE(sentinelNode->sizeAndFlag);
342 STATIC INLINE BOOL OsMemSentinelNodeCheck(struct OsMemNodeHead *sentinelNode) argument
344 if (!OS_MEM_NODE_GET_USED_FLAG(sentinelNode->sizeAndFlag)) {
348 if (!OS_MEM_MAGIC_VALID(sentinelNode)) {
355 STATIC INLINE BOOL OsMemIsLastSentinelNode(struct OsMemNodeHead *sentinelNode) argument
357 if (OsMemSentinelNodeCheck(sentinelNode) == FALSE) {
362 if ((OS_MEM_NODE_GET_SIZE(sentinelNode->sizeAndFlag) == 0) ||
363 (sentinelNode->ptr.next == NULL)) {
[all …]