Skip to content

Tag: linux-kernel

Kernel Panic with Buildroot Linux

I (try to) make a complete minimal Kodi Linux system with buildroot from scratch, everything compiles fine and i also got it to boot but after some lines of console output and graphics reset it gives me a kernel panic error: I have no clue why… My buildroot config file: https://pastebin.com/7PC4zLEa Ima…

How atomic the fork() syscall actually is?

Assuming check_if_pid_exists(pid) returns true when a process with such a pid exists (but possibly hasn’t been running yet) or false when there is no process with such pid, is there any chance in parent code for a race condition when the fork() returned the child pid, however the kernel hasn’t had…

Timing/Clocks in the Linux Kernel

I am writing a device driver and want to benchmark a few pieces of code to get a feel for where I could be experiencing some bottlenecks. As a result, I want to time a few segments of code. In userspace, I’m used to using clock_gettime() with CLOCK_MONOTONIC. Looking at the kernel sources (note that I a…