Skip to content
Advertisement

Tag: linux-device-driver

sysfs_create_group(): Where to call?

currently i write an driver module which offers some entries in the sysfs. I read a lot through the driver source tree and the internet. I found two approches where the sysfs_create_group() is called: a) most commonly: In the probe() function of the Driver. Like adviced here How to attach file operations to sysfs attribute in platform driver? Random Thing

How to make LKM multi-process safe?

I make simple LKM (Linux kernel module) to interact my MPI application (multi process per one compute node) at user level with kernel level information. I need to extract some data from kernel to the user level application at runtime. My MPI application uses few processes run on the same compute node simultaneously. My LKM provides two files in /proc.

Module not found when I do a modprobe

I am trying to install this module: https://github.com/mkottman/acpi_call I did a make, make install. I then saw acpi_call.ko is in /lib/modules/4.3.3-5-default/extra/. When I do a modprobe acpi_call I get modprobe: FATAL: Module acpi_call not found in directory /lib/modules/4.3.3-5-default Tried putting acpi_call.ko in /lib/modules/4.3.3-5-default but got the same result. I would like to make it persistent so that when I reboot,

Advertisement