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

Getting error when trying to compile linux kernel

Hi this is my first question and i sorry for probably mistakes that i havei try to compile linux kernel in fedora 32 and i get errori type these commands on terminalmkdir...

View Article


Monitoring wait time for locks used by a particular process in Linux

I'm attempting to evaluate whether a particular process is suffering a lot of lock contention among itsmany threads. This would be an external observation so I cannot add code to the process itself to...

View Article


I'm doing womething wrong when iterating the kernel linked lists

Thanks to this awesome answer I have mostly got how the Linux kernel linked lists work. However, the code examples in the answer are not 100% clear, and based on those alone I have written some code...

View Article

Invalid argument" setting key "net.core.somaxconn"

I tried setting Linux kernel. After editing /etc/sysctl.conf and executing the sysctl -pit shows errorInvalid argument" setting key "net.core.somaxconn"Linux distribution: Ubuntu 12.04.4 LTS, x86_64,...

View Article

What happens to a process running in a CPU when it goes offline

I make certain CPUs to go offline using the commandecho 0 > /sys/devices/system/cpu/cpu$cpu/onlinePost which my nproc, grep "processor" /proc/cpuinfo and lscpu confirms that the CPU is offline. In...

View Article


Print Kconfig Help for all enabled drivers

I have a kernel from a development kit that I am trying to clean up to eventually use for a production system. I want to remove as many drivers from the .config as possible, but I don't know what many...

View Article

Windows 10 is not booting. Entering in rescue mode [closed]

Actually i am using Windows 10 and Ubuntu in my laptop yesterday windows os was updating and during that process it was restarting several times. While restarting 2nd/3 rd time grub ran into problem. I...

View Article

How to invert spin_lock_init

I'm trying to understand how to use the Linux kernel spinlocks. From reading the header, I think I have to first declare one and initialize it like this with spin_lock_init:spinlock_t...

View Article


Can I allocate memory from the kernel and release it from userspace?

I've read here that you can read kernel memory if you disable the address validity checks, but that's not what I want to do.I want to return some strings from the kernel to the userspace, and not being...

View Article


Kernel Objects and its control

I am beginner in Linux and Kernel development. I had attended several interviews and in most of the interviews, some set of questions were asked about the control of Kernel objects.Who controls the...

View Article

Image may be NSFW.
Clik here to view.

What is the relationship between framebuffer, VT, and tty?

I'm now studying what is the mechanism behind Ctrl+Alt+F1~F7.I found some infomation talk about framebuffer, VT, and tty. I know framebuffer is an anstraction to graphic card manipulation and tty(and...

View Article

Linux kernel module - getting execve program name using kprobe hook fails but...

I'm trying to capture program name passed to execve syscall within my kernel module. When hooking syscall_table[__NR_execve] directly, regs->di contains the proper __user char* filename, which I'm...

View Article

Do workqueues and tasklets have priority assigned to them?

I am asking this in the context of RT-preemptive option in linux kernel.I am speculating that with CONFIG_RT_PREEMPTIVE option in linux kernel,the context switching will be real time i.e. it will try...

View Article


what interrupt I should see in linux to see whenever the context switch happens?

I am looking into cat /proc/interrupts and I am looking for the name of the interrupt I should look for whenever context switching happens? Where can I see the counts of interrupts when the context...

View Article

how to write mouse program in linux

I have tried to write a program which will detect the mouse movement. But it is showing error while running in linux environment. i also want to implement the program where if user move the mouse in x...

View Article


Software multiplexing-demultiplexing the serial port

everyoneI have two boards and they are connected using a UART connection (TX, RX, CTS, RTS). The problem is that I have 2 processes that needs to use the same serial port. Graphically, the problem...

View Article

SELinux - how do I call my custom interface?

I wrote a new policy contains new type definition (.te) and interface method (.if):.te file:policy_module(dummy, 1.0.0)type dummy_t;files_type(dummy_t).if file:## <summary>## Do Bla bla##...

View Article


Why does my /proc/kallsyms file not contain all the symbols in System.map?

I saw from this SO post that /proc/kallsyms should have the symbols of dynamically loaded modules as well as static code whereas System.map contains only the symbols of static code. However, when I cat...

View Article

Ubuntu 20.4 USB-C to HDMI adapter stoped working after reboot

Hi Just installed the newest version of Ubuntu LTS release on my ThinkpadT480s and somehow my second Monitor which is connected by a USB-c to HDMI adapter is not working. Right after installation, it...

View Article

OOM killer: Does oom_score_adj=-1000 still prevent killing?

have a task that must not be killed in case of an OOM. In order to prevent that, I periodically write a -1000 in /proc/[PID]/oom_score_adj.However, after an OOM the process vanished. I am pretty sure...

View Article
Browsing all 12241 articles
Browse latest View live


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