cost 105 ms
设备树如何提供“数据”字段(对于平台设备案例)? - How is the 'data' field provided by the device tree (for platform devce case)?

我不明白设备树信息是如何在特定的驱动程序中使用的。 这是来自 linux-6.15.68 drivers/pci/controller/dwc/pcie-designware-plat.c 的代码片段。 因此,kernel 在为平台设备运行此探测器 function 时解析设备树(连接到 stru ...

用于 ST7580 PLC 调制解调器的自定义 Linux serdev 驱动程序 - Custom Linux serdev driver for ST7580 PLC modem

我有一个 ST7580 电力线通信调制解调器,它连接到运行 Debian Linux、kernel v4.19 的 BeagleBone Black 设备。 我正在尝试使用基于某些示例的自定义串行驱动程序(使用 SERDEV 模型)与调制解调器通信。 我将其编译为一个名为st7580km.ko的 k ...

linux 源代码中定义的函数“pci_bus_write_config_dword”在哪里? (linux-5.15.68) - Where is the funcion 'pci_bus_write_config_dword' defined in linux source code? (linux-5.15.68)

在 linux-5.15.68 源代码树中,我试图搜索 function 'pci_write_config_dword' 的定义,这是在调用 'pci_bus_write_config_dword'。 因此,使用 grep,我搜索了“pci_bus_write_config_dword”的定义, ...

即使我在设备树中添加了“linux,cma 节点”,cma 保留区域似乎仍为 0 KB - cma-reserved region appears to be 0 KB even if I added a 'linux,cma node' in the device tree

我想在 linux (5.15.68) 中测试 cma-allocator。 所以我像这样在 /reserved-memory 节点中添加了 linux,cma 节点。 顺便说一句,这个测试是在 qemu arm64 机器上完成的,虚拟机中只有 1GB ram(从 0x80000000 ~ 0xb ...

有没有比制作驱动程序更简单的方法来完成这个实验? - Is there any easier way, than making a driver, for achieving this experiment?

我是不是把事情搞得太复杂了,或者这实际上是最简单的方法吗? 我需要一个软件,它允许我强制系统上的任何给定进程使用特定的 GPU。该软件应该能够强制进程在执行中切换 GPU(是的,我知道这会导致很多的问题,这是我正在做的一些实验的一部分,希望能做一些聪明的事情)(Linux btw) 制作一个允许进 ...

在 Linux Kernel 中声明一个全局变量并在设备开机期间使用它 - Declaring a global variable in Linux Kernel and using it through out the device power on

我有多个具有不同屏幕尺寸(4"、7"、12" 等)的板。在启动期间,我需要在 Linux Kernel 中的多个位置使用此信息。我们可以通过读取值来了解设备屏幕尺寸在两条输入线上。我不想每次想知道设备屏幕尺寸时都读取这些行。我想在开头(可能在板文件中)读取这些行并将其存储在全局变量中.在我需要屏幕大 ...

Linux 内核驱动程序 - 物理 CPU 内存未更新。 DMA问题 - Linux Kernel Driver - physical CPU memory not updated. DMA problem

我正在使用带有 Allwinner H6 ARM CPU 的 Orange Pi3 LTS。 我现在正在为 Rx 和 Tx 编写带有 DMA 的 UART 驱动程序。 我使用 kmalloc() 调用分配了物理 RAM 内存,并获得了分配内存的物理和逻辑地址。 所以,我知道处理器中的物理地址和 Li ...

在 Linux 文件系统驱动程序中动态创建新文件 - Dynamically create new files within a Linux filesystem driver

我正在研究一个 Linux 文件系统驱动程序,我已经掌握了生成超级块、创建 inode 和 dentry 并让它们处理读写的窍门。 不过现在,我希望驱动程序能够动态地向用户显示新文件。 基本上,我的问题是:我该怎么做? 比方说,举一个愚蠢的例子,每次用户从文件中读取时,我们都会创建一个新文件。 直觉 ...

linux kernel中pr_cont的scope是什么? - What is the scope of pr_cont in linux kernel?

我在此处的文档中阅读了有关pr_cont()的信息,但仍不清楚。 该文档说它: 在同一行中继续上一条日志消息。 正如预期的那样,对于以下代码,我得到以下 output。 OUTPUT: 但是这里的“上一条消息”的scope是什么? 它会 append 到它前面的任何 dmesg 日志,无论以前的 ...

制作 Linux 文件系统时,为 inode_init_owner 的 user_namespace 参数传递什么 - When making a Linux fielsystem, what to pass for the user_namespace parameter for inode_init_owner

我正在编写一个 Linux 文件系统驱动程序,并在教程中找到了这段代码。 从那里,我遇到了以前代码的修改版本,它可以在 3.x 内核上编译。 然而,文件系统 API 似乎又发生了变化,其中一个函数( inode_init_owner )采用了一个新参数。 这个 function(在linux/fs. ...

为什么我的程序从设备树中获取错误的地址单元/大小单元值? - Why my program gets wrong address-cell/size-cell values from Device tree?

我使用 libfdt,我很难从保留的 memory 区域节点(叶)中获取正确的地址单元/大小单元值到我的设备树中。 fdt_address_cells 返回 0x2 并且 fdt_size_cells 为“some-block”返回 0x1,即使“address-cells”/“size-cel ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM