xt-sdk 文档 v1.0.3
xt-sdk 嵌入式 SDK API 参考
载入中...
搜索中...
未找到
xt_list.h 文件参考

XTINY 双向链表与单向链表操作接口 更多...

#include <stddef.h>
#include <stdint.h>

浏览该文件的源代码.

结构体

struct  xt_list_node
struct  xt_slist_node

宏定义

#define xt_container_of(ptr, type, member)
#define XT_LIST_OBJECT_INIT(object)
 initialize a list object
#define xt_list_entry(node, type, member)
 get the struct for this entry
#define xt_list_for_each(pos, head)
#define xt_list_for_each_safe(pos, n, head)
#define xt_list_for_each_entry(pos, head, member)
#define xt_list_for_each_entry_safe(pos, n, head, member)
#define xt_list_first_entry(ptr, type, member)
#define XT_SLIST_OBJECT_INIT(object)
#define xt_slist_entry(node, type, member)
 get the struct for this single list node
#define xt_slist_for_each(pos, head)
#define xt_slist_for_each_entry(pos, head, member)
#define xt_slist_first_entry(ptr, type, member)
#define xt_slist_tail_entry(ptr, type, member)

函数

static void xt_list_init (struct xt_list_node *l)
 initialize a list
static void xt_list_insert_after (struct xt_list_node *l, struct xt_list_node *n)
 insert a node after a list
static void xt_list_insert_before (struct xt_list_node *l, struct xt_list_node *n)
 insert a node before a list
static void xt_list_remove (struct xt_list_node *n)
 remove node from list.
static int xt_list_isempty (const struct xt_list_node *l)
 tests whether a list is empty
static unsigned int xt_list_len (const struct xt_list_node *l)
 get the list length
static void xt_slist_init (struct xt_slist_node *l)
 initialize a single list
static void xt_slist_append (struct xt_slist_node *l, struct xt_slist_node *n)
static void xt_slist_insert (struct xt_slist_node *l, struct xt_slist_node *n)
static unsigned int xt_slist_len (const struct xt_slist_node *l)
static struct xt_slist_node * xt_slist_remove (struct xt_slist_node *l, struct xt_slist_node *n)
static struct xt_slist_node * xt_slist_first (struct xt_slist_node *l)
static struct xt_slist_node * xt_slist_tail (struct xt_slist_node *l)
static struct xt_slist_node * xt_slist_next (struct xt_slist_node *n)
static int xt_slist_isempty (struct xt_slist_node *l)

详细描述

XTINY 双向链表与单向链表操作接口

作者
your name (you@d.nosp@m.omai.nosp@m.n.com)
版本
0.1
日期
2025-07-03

SPDX-FileCopyrightText: 2025 深圳市天工聚创科技有限公司 SPDX-License-Identifier: Apache-2.0

在文件 xt_list.h 中定义.