Top "Linux-device-driver" questions

Device drivers take on a special role in the Linux kernel.

What is the opposite of `mknod`?

I am learning to write character device drivers from the Kernel Module Programming Guide, and used mknod to create a …

command-line linux-kernel linux-device-driver kernel-module mknod
How to create a simple sysfs class attribute in Linux kernel v3.2

I'm learning how to use sysfs in my Linux modules, but I'm having the hardest time finding current documentation on …

c linux linux-kernel linux-device-driver sysfs
Explain list_for_each_entry and list_for_each_entry_safe

Can anyone explain the working of list_for_each_entry and ...entry_safe loop in linux. It is like list_…

list linux-kernel linux-device-driver
What does request_mem_region() actually do and when it is needed?

I'm studying on writing embedded linux driver, and decided to fire a few GPIOs to make sure I understand the …

c linux-kernel linux-device-driver embedded-linux
How to mmap a Linux kernel buffer to user space?

Let's say the buffer is allocated using a page based scheme. One way to implement mmap would be to use …

linux linux-kernel linux-device-driver
module_init() vs. core_initcall() vs. early_initcall()

In drivers I often see these three types of init functions being used. module_init() core_initcall() early_initcall() Under …

linux-kernel linux-device-driver init
BSP vs Device-Drivers

While understanding each by itself (or maybe not), looks like I'm far from understanding the practical differences between the two. …

linux-device-driver device-driver vxworks bsp
Is it possible to set CFLAGS to a linux kernel module Makefile?

Eg: a common device module's Makefile obj-m:=jc.o default: $(MAKE) -C /lib/modules/$(shell uname -r)/build M=$(shell …

makefile linux-kernel linux-device-driver
What is the difference between devm_kzalloc() and kzalloc() in linux driver programming

I have found devm_kzalloc() and kzalloc() in device driver programmong. But I don't know when/where to use these …

linux-kernel linux-device-driver device-driver
What does ERESTARTSYS used while writing linux driver?

I'm learning about the blocking I/O functions for writing linux device driver and I'm wondering what is the usage …

c linux-kernel linux-device-driver