腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
2
回答
链接列表的节点应该存储谁的地址:具有节点作为字段的其他节点或数据结构?
、
、
从理解
Linux
内核开始 为什么
list_head
字段中的指针存储其他
list_head
字段的地址,而不是存储包含
list_head
浏览 1
提问于2018-09-17
得票数 1
1
回答
如何为
linux
内核模块开发配置clang_complete?
、
、
、
、
/
linux
/list.h|26 col 6 error| incomplete definition of type 'struct
list_head
'4 &
浏览 1
提问于2012-03-22
得票数 4
2
回答
无法从内核模块访问super_blocks列表:未定义!
以下是我的代码的相关部分:#include <
linux
/init.h>#include <
linux
/moduleparam.h>#include <
linux
/fs.h> #define PRIN
浏览 3
提问于2011-02-19
得票数 1
回答已采纳
1
回答
理解结构化任务
list_head
、
我有一个struct my_struct我找到了一个指南说有一个链接列表非常容易使用,我所需要做的就是在结构中包含一个task
list_head
,但是我不知道如何正确遍历这个列表,因为--我不知道这个列表实际上是如何构造的#include <
linux
/blkdev.h>#include <
linux
/module.h>
浏览 7
提问于2014-04-21
得票数 1
2
回答
list_empty函数内核链表
、
、
、
/include/
linux
/list.h中定义了list_empty()函数,它的定义是{}struct
list_head
{ struct
list_head
*next,
浏览 2
提问于2012-10-26
得票数 2
回答已采纳
2
回答
错误:预期标识符或“(”前面“=”标记)
这是我的密码#include <
linux
/init.h>#include <
linux
/module.h>#include <
linux
/slab.h> typedef struct
lis
浏览 6
提问于2015-11-20
得票数 0
回答已采纳
1
回答
如何使用
linux
内核列表实现队列?
、
、
、
我需要用C语言编写一些函数,使用
Linux
内核列表来操作队列。要做的第一个任务是将p指向的节点插入到队列中,知道
list_head
是q。void insertProcQ(struct
list_head
*q, struct proc *p)struct
list_head
{}; static inlinevoid
浏览 2
提问于2015-02-10
得票数 1
回答已采纳
1
回答
LIST_HEAD
(clean_pages)在
Linux
内核中不工作
、
、
、
但是当我使用
LIST_HEAD
(clean_pages)、
LIST_HEAD
(l_inactive)或
LIST_HEAD
(l_active)时,所有的列表都是空的。此外,
LIST_HEAD
(l_hold)也是空的.. 有没有办法从
Linux
内核中获得干净的页面?或者,有没有办法遍历页表中的所有页面?
浏览 5
提问于2015-06-07
得票数 1
1
回答
遍历task_struct的子节点
、
list_head
*' list_for_each(children_tasks, ¤t_task->children)include/
linux
expansion of macro 'list_for_each' list_for_each(childre
浏览 2
提问于2015-11-24
得票数 0
回答已采纳
1
回答
连接两个双链接列表的正确方法
、
、
在
Linux
内核源代码中,list_splice是用__list_splice实现的。static inline void __list_splice(const struct
list_head
*list, struct
list_head
*next) struct
list_head
struct <em
浏览 1
提问于2015-11-22
得票数 8
回答已采纳
1
回答
没有数据和自引用指针的链表
、
kernel/include/
linux
/types.h struct
list_head
{}; struct
浏览 1
提问于2014-01-23
得票数 0
1
回答
List.h在
linux
文件中吗?
、
、
、
在
linux
/include/
linux
/list.h中,我发现: * list_entry - get the struct for this entry */ #define list_entry(ptr, type, member) \
浏览 1
提问于2021-05-09
得票数 2
1
回答
如何像在
linux
内核中一样从头开始实现container_of
、
、
、
、
我希望从零开始实现container_of宏/函数,就像在
linux
内核中那样,以便从父结构的成员获得父结构的地址。例如,如果父结构是 我在结构中有
list_head
元素的地址。我只有三种已知信息: 1.父结构类型2. struct
list_head
3.
list_head
变量的标识火/名称。
浏览 4
提问于2015-06-16
得票数 1
2
回答
在C宏中,ampersand的应用是什么?
、
、
、
我在读
linux
/list.h的标题,它有我想知道当我写LIST_HEAD_INIT(birthday_list
浏览 0
提问于2014-01-11
得票数 5
回答已采纳
1
回答
Linux
内核
list_head
内存使用情况
、
我正在尝试使用
Linux
内核中推荐的list实用程序。从的介绍来看,
list_head
的一个特性是元素可以属于不同的列表。现在,如果我想要一个所有员工的列表和一个旧员工的列表,我想我必须定义以下数据和结构:struct
list_head
old_staff; int age; s
浏览 0
提问于2017-05-12
得票数 0
1
回答
编译
linux
内核时无法识别
list_head
、
、
我是个新手,我不能摆脱这个错误: 错误:未知类型名称‘
list_head
’;您的意思是‘rcu_head’吗?以下是指向出现错误的行的行数: //directives#include <
linux
/list.h>#include <asm-generic/barrier.h> #include
浏览 33
提问于2019-06-21
得票数 0
回答已采纳
4
回答
这个结构是做什么的?
、
我在"
linux
/list.h“中遇到了一个结构,如下所示。我不完全理解它,也不知道如何使用它?它似乎是某种标记结构,因为它声明了任何变量来包含任何信息,而不是空本身。你将如何使用它?struct
list_head
{ };
浏览 3
提问于2012-12-17
得票数 0
回答已采纳
1
回答
用list_sort对
Linux
/list.h链接列表进行排序
、
、
我正在开发一个
Linux
内核模块,我使用的是在链接列表中构建的be。我需要对这个列表进行排序,我看到有一个内置的list_sort函数,如下所述。但是,我对priv参数感到困惑。这个参数用于什么?在
linux
/list_sort.h中定义 * list_sort - sort a list int (*cmp)(void *priv, struct
list_head
*a,
浏览 23
提问于2016-02-29
得票数 1
2
回答
无法从内核模块访问vm_list和mm_struct
、
#include <
linux
/module.h> // included for all kernel modules#include <
linux
/string.h>#include <
linux
/kvm_host.h
浏览 1
提问于2014-04-09
得票数 0
2
回答
在Trace32中显示
Linux
链接列表
、
、
、
、
我尝试在Trace32中以用户友好的方式打印
Linux
链接列表。如果没有,那么让我展示一个列表的示例。我有全局变量哪里 struct
list_head
*next, *prev;struct
list_head
list;} 通常情况下,要提取容器指针,
Linux
使用宏。mptr = (ptr);
浏览 0
提问于2015-11-03
得票数 1
回答已采纳
点击加载更多
相关
资讯
玩转内核链表list_head,教你管理不同类型节点的实现,建议收藏
Cgroup原理解释及部署实例(3)
你还觉得C语言很难吗?神级程序员五分钟带你入门!这就是学习效率
“30 岁”的 Linux 内核 C 语言将升级到 C11
C语言和指针的本质是什么?技术大神给出答案
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券