Quantcast
Channel: Active questions tagged linux-kernel - Stack Overflow
Browsing all 12244 articles
Browse latest View live

Correct way to exit init in Linux User Mode

I compiled Linux kernel 5.6 in User Mode with my custom initrd, created with following method:mkdir initrdcd initrdmkdir bin dev etc home mnt proc sys usrmknod dev/console c 5 1with initrd/init.c init...

View Article


Why does execve() return EBUSY? [closed]

I have an execve() call returning error code 16.IIRC, error code 16 is EBUSY.The man page for execve does not list EBUSY as a possible error code.Can someone think of a reason why execve is behaving in...

View Article


Where does task_struct get initialized in the Linux kernel?

Is there a function that gets called to initialize (at least some) values of task_struct? Or is there any other function that gets called upon task (specifically, user-space process) creation?

View Article

Memory layout of C program (stack and heap)

Is the stack and heap used common across the system or are the stack & heap created specifically for every process created?

View Article

Linux PCI device interrupt not generated

I am currently refactoring a driver for the AMD Sensor Fusion Hub.The original driver can be found here.When sending commands to the device, the chip takes some time to process the request. I wasusing...

View Article


the probe function not being called?

I want to understand why the probe function not being called.what do I need to study to fix the problem with any USB type to auto-detected after the insertion automatically?I use key a keyboard, kernel...

View Article

How to work kernel irq thread in kernel Linux?

I have seen in mmc driver the function devm_request_threaded_irq used to launch sdhci_msm_pwr_irq like following :ret = devm_request_threaded_irq(&pdev->dev, msm_host->pwr_irq, NULL,...

View Article

Error building program using gcc plugin from linux kernel source tree

I am trying to use a grsecurity gcc plugin that I found on their unofficial linux kernel source tree (the respectre_plugin/ one).My GCC version is 4.7, I modified scripts/gcc-plugins/Makefile to make...

View Article


Linux kernel development, how to get physical core id?

I am totally beginning in Linux kernel development. I am trying to learn about processes and scheduling (I know what I want to do is not "useful" it is just to learn).I wrote a syscall which returns me...

View Article


Image may be NSFW.
Clik here to view.

Linux Mint Update Manage how to change active kernel?

I installed a new kernel in Linux Mint 19.3 using the Update Manager. But it still shows the old kernel as Active. uname -a shows the same kernel version. When I click on the new kernel it is shown as...

View Article

What is the meaning of "waking" state of the linux kernel process?

I know that process can be waked up using wake_up calls in linux,but what does it imply when someone says process is in "waking" state?

View Article

How to change the frequency scaling driver from "intel-pstate" to...

I want to change the current driver for cpufreq-* command to control CPU frequency on Intel NUC. The current driver is intel-pstate which allows performance and powersave only as governors.$...

View Article

Difference between functions in platform_driver and *_ops structures

If we take an ahci driver as an example.In ahci_platform.c there are some driver functions described under:static struct platform_driver ahci_driver = {...functions...}. The question is:What's the...

View Article


Memory consumption for sockets in linux & compaction behavior

Our system had a memory footprint growing gradually.After doing too many debugging with the profilers, didnt reach the exact point of issue.Now after verifying random things on the system, it got...

View Article

after using rmmod program freezes

I have some problem with my code. In my code i solve the reader writers problem using RCU, when i load the module (insmod) everything works ok, and it works as i expected, but when i unload module...

View Article


How to operate 10Gbit SFP+ module if driver doesn't support SFP+?

AbstractI'm trying to get a 10GBASE-SR SFP+ module running. The MAC driver doesn't support I²C access to the registers, therefore I want to use PHY-less mode. On the other hand, the "fixed-link" mode...

View Article

Reducing AOSP kernel image size

I am trying to build an AOSP kernel, but I can't make the resulting boot.img small enough to flash and boot it. It contains the compressed kernel with appended dtbs and the initramfs. My intention is...

View Article


how to compile linux kernel module with -ggdb flag

I modify my module Makefile to make kernel module with -ggdb flag, KERNROOT := /lib/modules/$(shell uname -r)/buildccflags-y += -ggdb3#ccflags-y += -gtest: $(MAKE) $(ccflags-y) -C $(KERNROOT) M=$(shell...

View Article

How to know which CONFIG_XXX corresponding a module?

Is there a command or some tools that can help you get the corresponding CONFIG_XXX options to enable a module. For example, if I want to enable module nvme, which CONFIG_XXX should be y or m?I know...

View Article

Kernel panic due to old module, cannot disable module

After being stupid and updating one of my build machines I am recieving a kernel panic upon boot of the new kernel due to a module "Pxl8000_NT" being loaded. Although I have the source and can rebuild...

View Article
Browsing all 12244 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>