函数逻辑报告 |
Source Code:lib\list_sort.c |
Create Date:2022-07-27 07:17:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Returns a list organized in an intermediate format suited* to chaining of merge() calls: null-terminated, no reserved or* sentinel head node, "prev" links not maintained.
函数原型:__attribute__((nonnull(2, 3, 4))) static struct list_head *merge(void *priv, cmp_func cmp, struct list_head *a, struct list_head *b)
返回类型:struct list_head
参数:
类型 | 参数 | 名称 |
---|---|---|
void * | priv | |
cmp_func | cmp | |
struct list_head * | a | |
struct list_head * | b |
22 | tail等于head |
24 | 循环 |
34 | 否则 |
44 | 返回:head |
名称 | 描述 |
---|---|
list_sort | list_sort - sort a list*@priv: private data, opaque to list_sort(), passed to @cmp*@head: the list to sort*@cmp: the elements comparison function* The comparison funtion @cmp must return > 0 if @a should sort after*@b ("@a > @b" if you want an ascending |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |