腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
2
回答
如何在/
proc
/驱动程序下创建
proc
条目?
linux-kernel
、
kernel-module
、
procfs
我使用create_
proc
_entry:simpleproc_fops_entry = create_
proc
_entry此函数中未声明的
proc
_root_driver struct
proc
_dir_entry
proc
浏览 5
提问于2009-02-26
得票数 6
1
回答
Linux
3.13内核模块设置文件条件的procfile_
read
结束
c
、
linux
、
module
、
kernel
、
posix
我正在为
Linux
3.13编写一个内核模块,其中procfile_
read
函数原型定义为:这与我可以在网上找到的每一个资源都不一样,比如,那里的函数原型在
Linux
2.x中是不同的。如何在新的procfile_
read
函数中设置文件结束条件?
浏览 0
提问于2015-02-13
得票数 0
回答已采纳
1
回答
在现有条目下创建
proc
条目
linux
、
kernel
、
procfs
我的内核模块将在现有的
proc
条目下创建一个条目,例如/
proc
/sys,我现在该怎么做?
浏览 5
提问于2013-08-24
得票数 0
3
回答
Linux
内核模块-创建
proc
文件-
proc
_root未声明的错误
linux-kernel
、
kernel
、
kernel-module
我从这个URL复制和粘贴代码,以便使用内核模块创建和读取/编写
proc
文件,并获得
proc
_root未声明的错误。同样的例子也出现在几个网站上,所以我认为它是可行的。知道我为什么会犯这个错误吗?下面也是我的makefile:我正在使用的Makefile:
浏览 3
提问于2010-03-28
得票数 10
回答已采纳
3
回答
错误:函数'create_
proc
_
read
_entry‘的隐式声明[-Werror= implicit - function - declaration ]
c
、
linux
、
linux-kernel
、
kernel-module
我试图在内核3.13上编译一个内核模块,我得到了这个错误:#if (
LINUX
_VERSION_CODE < KERNEL_VERSION(2,6,24))
proc
=
proc
_net_create(KAODV_QUEUE_
PROC
_FS_NAME, 0, kaodv_qu
浏览 1
提问于2014-09-09
得票数 9
回答已采纳
1
回答
获取
linux
中的显卡信息( /
proc
文件系统)
linux
、
ubuntu
、
systems-programming
我可以创建
proc
file.what我想使用
proc
read
function.How学习显卡信息我可以这样做吗?我并不打算在终端中学习这些信息(通过编写lspci vs)。#include <
linux
/init.h>#include <
linux
/
proc
_fs.h> //
read
proc<
浏览 11
提问于2013-12-10
得票数 0
1
回答
如何修复错误:从不兼容的指针类型传递'
proc
_create‘的参数4
c
、
linux-kernel
、
kernel
下面是skynet.c: #include <
linux
/module.h> // included for all kernel modules#include <
linux
/seq_file.h> // seq
浏览 578
提问于2020-11-20
得票数 5
回答已采纳
1
回答
LinuxKernelv5.15-如何通过python从/
proc
文件中读写
python
、
linux-kernel
、
kernel-module
我试图在下面的模块中创建/
proc
文件:#include <
linux
/init.h>#include<
linux
/kdev_t.h>#include <
linux
/cdev.h>
浏览 8
提问于2022-05-08
得票数 0
3
回答
Linux
内核模块奇怪的行为
c
、
linux-kernel
我正在学习一个
linux
内核,所以我试着写一个简单的模块。下面的代码用于控制/
proc
/
proc
_test的
read
()被调用的次数:#include <
linux
/module.h>#include <
linux
/kernel.
浏览 0
提问于2012-09-10
得票数 2
回答已采纳
3
回答
内核模块的
proc
_create()示例
linux-kernel
、
linux-device-driver
有人能给我举个
proc
_create()的例子吗? 早些时候,他们在内核中使用了create_
proc
_entry(),但现在使用的是
proc
_create()。
浏览 12
提问于2011-12-15
得票数 33
回答已采纳
1
回答
在创建
Proc
条目时出错
device-driver
、
kernel-module
、
kernel
我想在USB驱动程序代码中创建一个
Proc
条目,但我得到的错误是隐式函数声明函数'create_
proc
_
read
_entry‘和'remove_
proc
_entry'。为了创建
Linux
设备驱动程序文本中指定的
proc
条目,我在scull驱动程序代码中遵循了类似的步骤,但是在通过makefile编译时,我得到了上面的两个错误。include <
linux
/
proc
_fs.h>
浏览 5
提问于2013-05-04
得票数 1
回答已采纳
1
回答
如何从不兼容指针类型修复初始化问题
c
、
linux
、
linux-kernel
->
read
_
proc
=
read
_
proc
;#define __KERNEL__#include<
linux
/seq_file.h> #include <
linux
/
proc
_fs.h>#i
浏览 9
提问于2020-04-13
得票数 0
2
回答
安装无线驱动程序时出错
wireless
、
compiling
entry = create_
proc
_
read
_entry("ver_info", S_IFREG | S_IRUGO, rtw_
proc
,
proc
_get_drv_version, dev);by default] entry = create_
proc
_
read
_entry("ver_info", S_IFREG | S_IRUGO, rtw_
proc
,
proc
_get_drv_versionfr
浏览 0
提问于2014-08-02
得票数 7
1
回答
错误:删除
proc
模块时“设备或资源繁忙”
c
、
linux
、
linux-kernel
、
linux-device-driver
我编写了一个
linux
模块来创建一个
proc
文件,并从它中写入和读取数据。但我无法删除模块,它显示了一个错误,无法删除说“设备或资源繁忙。这是我的代码。”file open
read
close */#include<
linux
/
proc</e
浏览 1
提问于2013-09-15
得票数 1
回答已采纳
2
回答
使用procfs从内核读取时间戳-从内核读取后,时间戳存储在哪里?
c
、
linux
、
linux-kernel
、
linux-device-driver
、
procfs
ssize_t dev_
read
(struct file *filp,const char *buf,size_t count,loff_t *offset) //interrupted and start executing the newly arrived task but I have to
read
浏览 3
提问于2014-04-20
得票数 0
1
回答
Linux
Proc
内核hello程序
linux-kernel
、
kernel-module
、
procfs
modules/5.13.0-37-generic/build M=/home/a1085551/osc10e/ch2 modules 42 |
proc
_create(
PROC
_NAME, 0, NULL, &<
浏览 57
提问于2022-04-10
得票数 0
回答已采纳
1
回答
Linux
2.6.x内核的`procfs1.c`的现代版本是什么?
linux-kernel
、
kernel-module
当我遇到第5章中的第一个示例procfs1.c时,我一直在遵循。因此,我正在为将来的人们发布我的更新代码。我正在运行内核2.6.32-279.el6.x86_64。
浏览 2
提问于2014-03-21
得票数 0
2
回答
内核模块编程
c
、
linux
我正在尝试通过内核模块读写
proc
文件echo "hello" >> /
proc
/hello && cat /
proc
/hello#include <
linux
/kernel.h> #include <
linux
/
浏览 3
提问于2016-04-13
得票数 7
1
回答
procfs中的
read
_
proc
_t和file_operations
linux-kernel
、
procfs
我现在正在学习
proc
文件系统。我现在知道在读取校对文件时会调用
read
_
proc
_t函数,在写入校对文件时也会调用write_
proc
_t函数。但我还在
proc
_dir_entry的定义中找到了file_operaitons*字段,以及这个示例代码()。所以我很困惑,如果在file_operations structure中同时提供
read
_
proc
_t函数和
read
函数的实现,会发生什么?哪一个优先于另一个?其中一个会被另一个覆盖吗?非常感谢。
浏览 6
提问于2013-07-21
得票数 1
回答已采纳
1
回答
从
proc
模块内部读取设备信息
proc
#include <
linux
/init.h> #include <
linux
/
proc
_fs.h> //
proc
filesystem
read
proc
functionint
read
_
proc
(char *buf, cha
浏览 0
提问于2013-12-11
得票数 0
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
Linux read的用法
使用/proc信息跟踪进程的堆栈
READ币挖矿指南
Teaching Machines to Read and Comprehend
books I read In 2017
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券