linux-device-driver
How to combine multiple struct BIOs into a single struct request?
I\'m working on Linux kernel version 2.6.39.1, and am developing a block device driver. In this regard, I want to combine multiple struct bios into a single struct request, which is then added to the[详细]
2023-03-19 12:01 分类:问答How to patch linux kernel to add gyroscope support
I\'m trying to use MPU3000/3050 by Invensense with embedded linux (ARM-based LPC3141 board, Embedded Artists).[详细]
2023-03-19 08:25 分类:问答Linux: create mmap()able virtual file (e.g. SPI memory)
I have a char device which enables access to an external SPI memory, and I\'d like to mmap() the external memory so that I can access it from a program as if开发者_StackOverflow it were normal memory.[详细]
2023-03-18 19:52 分类:问答In Linux, what kinds of files are memory mapped?
What are the different types of Linux files that can be created entirely in memory? For example, a pipe file may be created, but does the location of where a file is created (or the filesystem type o[详细]
2023-03-18 03:11 分类:问答Linux kernel interrupt handler mutex protection?
Do I need to protect my interrupt handler being called many times for the same interrupt? Given the following code, I am not sure on the system calls I should make. I am getting rare, random dead-loc[详细]
2023-03-17 16:15 分类:问答How do I test for the version of XFIXES in my configure.ac when compiling my X Driver?
I\'m writing a video device driver for X, and it needs some features provided by the XFIXES Extension. Now, I\'m pretty sure that all of my target versions of the X Se开发者_如何学Crver will have at l[详细]
2023-03-15 16:53 分类:问答kmalloc returning the same adress over and over again [Linux 2.4]
I working on some code in the linux kernel (2.4) and for some reason kmalloc returns the same address (I believe it only happens after the middle of the test). I checked that no calls to kfree were ma[详细]
2023-03-15 12:55 分类:问答How to read extended PCIE configuration space in Linux?
I\'ve tried both reading userspace pci entry under /proc/bus/pci directory and calling kernel space API pci_read_config_word() in the driver. but it seems both can only read pci basic configuration sp[详细]
2023-03-12 13:39 分类:问答Call trace when loading a module in Linux
I\'m writing my first Linux kernel module, which actually is a RAM disk driver plus some additional features. When I tried to insmod the module, "Segmentation fault" happened.[详细]
2023-03-10 08:29 分类:问答operand of LIDT is displacement/absolute address
I stumbled upon a statement in Intel Software developers manual: \"For LGDT, LIDT, LLDT, LTR, SGDT, SIDT, SLDT, STR, the exit qualification receives the value of the instruction’s displacement field,[详细]
2023-03-08 10:33 分类:问答