driver, module以及怎么看他们

1. driver和module的区别

  https://unix.stackexchange.com/questions/47208/what-is-the-difference-between-kernel-drivers-and-kernel-modules

大体上可以这样认为,他们都是运行在kernel空间的程序。driver是随系统启动加载的,而module是启动后可以手动加载/卸载的。module更具与灵活性。能用module方式的就用module方式。

 

2. 怎么查看所有已加载的driver?

 

3. 怎么查看所有可用的module?假设系统应该有个默认路径,存在该路径下的module(*.ko)可以直接在任何地方使用insmod进行加载。当然自己编译的module没有放在默认路径就只能进入实际路径进行insmod。

 

4. 怎么查看所有已经loaded的module?这是本篇笔记的动机。本来的目的是想看内核fuse是不是一个被加载的module。

 参考: http://www.s0ftpj.org/docs/lkm.htm

lsmod provides the administrator a listing of all modules currently loaded in the kernel. This list can also be found at /proc/modules. This is helpful if you want to figure out what modules are currently running. You will see a little later that lsmod is not always a good tool to use for the detection of rootkit LKM’s.

意思是,lsmod列出目前已经loaded的module。但是他并不能检测出所有的,特别是恶意的。后文介绍了详细。

 

 

17.5.14.

5. 查看内核所有的可用变量和函数

参考 https://onebitbug.me/2011/03/04/introducing-linux-kernel-symbols/

主要是 /proc/kallsyms 文件

 

-------------------------------------------------------------------------------------------

ref:

https://bbs.archlinux.org/viewtopic.php?id=14172

This will provide a list of modules
modprobe -c | less

 

 

http://www.s0ftpj.org/docs/lkm.htm

转载于:https://www.cnblogs.com/bettersky/p/6848467.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
xilliix pcie dma 驱动 (基于 xilnx xdma ip核 4.0 的WDF驱动) --- # XDMA Windows Driver This project is Xilinx's sample Windows driver for 'DMA/Bridge Subsystem for PCI Express v4.0' (XDMA) IP. *Please note that this driver and associated software are supplied to give a basic generic reference implementation only. Customers may have specific use-cases and/or requirements for which this driver is not suitable.* ### Dependencies * Target machine running Windows 7 or Windows 10 * Development machine running Windows 7 (or later) * Visual Studio 2015 (or later) installed on development machine * Windows Driver Kit (WDK) version 1703 (or later) installed on development machine ## Directory Structure ``` / |__ build/ - Generated directory containing build output binaries. |__ exe/ - Contains sample client application source code. | |__ simple_dma/ - Sample code for AXI-MM configured XDMA IP. | |__ streaming_dma/ - Sample code for AXI-ST configured XDMA IP. | |__ user_events/ - Sample code for access to user event interrupts. | |__ xdma_info/ - Utility application which prints out the XDMA core ip | | configuration. | |__ xdma_rw/ - Utility for reading/writing to/from xdma device nodes such | | as control, user, bypass, h2c_0, c2h_0 etc. | |__ xdma_test/ - Basic test application which performs H2C/C2H transfers on | all present channels. |__ inc/ - Contains public API header file for XDMA driver. |__ libxdma/ - Static kernel library for XDMA IP. |__ sys/ - Reference driver source code which uses libxdma |__ README.md - This file. |__ XDMA.sln - Visual Studio Solution. ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值