Skip to content

Tag: linux-kernel

Unable to write on /dev/* files

I’m writing a basic char device driver for Linux kernel. For this, the code flow I have considered is as follows: alloc_chrdev_region() -> to use dynamic allocation of major number class_create() -> to create device class in sysfs device_creat() -> to create device under /dev/ cdv_init() -> …

Regarding gcov output in Linux kernel?

I am running gcov in Linux kernel tree , I am getting correct report but some summary that printed at every file header is coming incorrect like below :- Here we can see number of runs and programs runs are coming zero which is not correct. what could be reason of this bug ? Answer From here: https://www.kern…

android Use Linux tools stored at assets folder

I want to use tools from Linux which not available in Android by default such as iw and iperf. I saw Android applications that use this tools (like this). There are two ways to do it. First: get root rights on device and put file of the tool to the system/bin/ folder. Second: put file of the tool to assets

Unbound workqueue’s kthreads CPU affinity

Is there a way to set CPU affinity for unbound workqueue’s kthreads (those that named kthread/uXX:y)? Something like cpu mask for regular workqueues. Is it a good idea to set it for each kthread using taskset? Answer Workqueue subsystem exports sysfs attribute for setting cpu affinity for unbound worker…

Kernel booting error – Can I get the log?

I replaced the kernel with the new one I built. Unfortunately, the system hangs during the booting process of the kernel. The booting messages shown just in few seconds, is that possible to get these booting messages ( logs ) ? Thanks Answer They are stored in /var/log/kern.log

modify the kernel version information in the menuconfig

I downloaded the kernel source and by typing the following command I can see the linux kernel version is 3.02.02 for example. However, due to some reasons, I have to change it to say… 3.01.01-12-generic I found the appending option in the menuconfig but this does not meet my need. Please let me know if …