Skip to content
Advertisement

Tag: linux-kernel

System crash with Linux CryptoApi Module

I tried to write Linux kernel module with cryptoapi. I found some examples like this: https://codedream.me/2014/04/cryptoapi-linux-kernel/ This example is working for me. Then I made some changes. Now my system crashes, when I try to load module. Can you help me with this? When variable len = 1000, module is loaded normal. But if I change it on len =

Usage of lstat / stat from the linux kernel?

I’m hoping someone can fact check my assumptions on the question “Can lstat and/or stat be called form the Linux kernel 3.10.0 in Centos 7. I’ve been searching and reading as much as I can find and have only been able to confuse myself. I can’t tell if the examples I am finding are available to kernel space or user

lookup the lock statistic in linux kernel

I study Linux lock mechanism recently, and want to see the lock holding and waiting time. So I turn on CONFIG_LOCK_STAT flag in the .config file via make menuconfig and after recompiling the kernel run the command: I got the following message: Just don’t know why, since I’ve turn on all the flags in the kernel hack->lock session. P.S. The

Which header file do I have to include to get printk() within a kernel source file?

Let’s say I want to use printk() within arch/x86/boot/string.c before compiling the kernel. Which header file do I have to include so that the linker knows where to find printk()? I tried #include <linux/kernel.h> and #include <linux/printk.h> but I always get errors during make bzImage telling me the linker does not find printk: Answer You are trying to instrument the

could not to setup crash dump on centos7 for debug kernel

I am trying to setup kdump to generate the vmcore for kernel-3.10.0-123.el7. For the perf kernel kernel-3.10.0-123.el7.x86_64.rpm i setup kdump and kdump is working fine too, generating vmcore. Then i installed kernel-debug-3.10.0-123.el7.x86_64.rpm using yum install kernel-debug-3.10.0-123.el7.x86_64.rpm and kdump worked fine. But then i didnt have vmlinux to read vmcore of debug kernel. Then I build source using rpmbuild from the

How does the kernel handle a read operation on proc files when several instances of the same driver are running simultaneously

I have a question regarding the way proc files are handled when several instances of the same driver are running simultaneously. lets assume that a my system runs a couple of instances of the same driver simultaneously, but only one of them (according to some inner decision making) created a proc file and maintains the information that should be written

Advertisement