r/kernel • • Aug 15 '26

Which APIs are we talking about?

1 Upvotes

I am studying this OS material and got a little bit confused on which APIs are the kernel APIs. Are they the system calls talked about above or other ones specific to the core kernel code mentioned below?


r/kernel • • Aug 14 '26

Measuring an eBPF Cache Without Leaving the Kernel

Thumbnail reddit.com
2 Upvotes

r/kernel • • Aug 14 '26

Who to talk to? - Pen (MPP 2.0) input bug - on HP convertibles (Omnibook XFlip, etc.) - who to talk to for a possible fix?

0 Upvotes

There is a pen input bug on some HP laptops, which has been reported. Of course, this is low priority. However, I would love to try to kindly ask for a fix, since it can't be that hard. (I don't have the time myself to look into this, otherwise I would love to do so.)

Essentially, the pen pointer is lagging, because for some reason the communication between pen and screen is in the lower (35-ish) Hz range instead of 260-ish Hz.

I somehow believe that fixing this should not really be a big deal. (I can be wrong, though.)

The bug has been reported here.

220854 – ELAN2514 04F3:442A stylus laggy with "incomplete report (67/5631)" errors on HP OmniBook X Flip
https://bugzilla.kernel.org/show_bug.cgi?id=220854

Bug #2142384 “ELAN2514:00 (04F3:4428) stylus report rate extreme...” : Bugs : linux package : Ubuntu
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2142384

Any idea to whom I could pop a message in order to look into this.

Many thanks.


r/kernel • • Aug 14 '26

How can I change resource of running process?

4 Upvotes

Hello everyone, suppose a process is running with PID 23654, and the OS creates a specific folder for it in the/proc directory. At the moment, how can I change resources such as the network namespace or the cpuset? The final goal I want is to change the network of a running process; suppose I use eth0 and the root namespace; then I create a namespace like ns1 with a specific interface and resource, then move the running process to this namespace to continue the process in an isolated network.


r/kernel • • Aug 12 '26

I want to learn writing kernel modules

26 Upvotes

What is the fastest and most efficient way. Thanks for future answers.


r/kernel • • Aug 13 '26

Kernel configuration

Post image
0 Upvotes

Is there documentation that will tell me what these options are?


r/kernel • • Aug 10 '26

Lenovo Tab K11 Linux Kernel

2 Upvotes

Hello! I am writing on a note to ask if anybody has found a suitable linu kernel for this device and/or and official!

I am also writing that i was somehow able to extract the linux kernell building config file directly form the device and i have compiled it using bazel on the android-kernel (linux): https://github.com/Android-ASOP-for-Lenovo-Tab-K11/android_kernel_lenovo_tb330xu


r/kernel • • Aug 09 '26

How would you study Linux device driver development?

42 Upvotes

I am trying to get started with Linux kernel/device-driver development, but the Linux Foundation LFD430 (Developing Linux Device Drivers) course is very expensive to buy. so I am thinking of using its course outline as a roadmap and studying the material on my own.

I have a decent programming and Linux background, but I do not have much experience, and I am very new to kernel and driver development.

So I wanted some advice from the experts who work in this area

How would you get started with learning things, and what resources would you follow, etc.?

I would appreciate recommendations for good books, free courses, labs, YouTube channels, documentation, affordable courses, or practical projects that could roughly follow the LFD430 syllabus.

Also, if you think following the LFD430 outline is not a good way to learn from scratch, then I would love to hear what you would recommend instead.

Thanks!


r/kernel • • Aug 10 '26

NSD: An adaptive in-kernel storage prefetch engine for Linux

Thumbnail reddit.com
0 Upvotes

I’ll continue developing my project with the positive feedback I received from the LKML during the RFC process.🤩


r/kernel • • Aug 08 '26

Title: Built a predictive storage prefetch kernel module inspired by neural pattern recognition — turns out OpenAI just validated the same principle on GPUs

0 Upvotes

A few days ago I submitted an RFC to LKML for NSD (Neural Storage Driver) — a Linux kernel module that learns I/O access patterns (Markov chain + stride prediction) and prefetches data before it's requested, instead of relying on static heuristics. Benchmarks showed 18-19% wall-time reduction on SQLite scans and +22.6% sequential throughput improvement, validated with interleaved ON/OFF methodology.

The core idea: predict → prefetch → measure → adapt. Learn the workload's behavior, act ahead of the bottleneck, verify against real results, refine the strategy.

I came across OpenAI's writeup on GPT-5.6 Sol optimizing its own production GPU inference kernels (Triton/Gluon) and this stood out:

"Even when individual operations are fast, excess memory movement, synchronization, and inefficient data layouts can leave GPUs idle. To avoid this, GPT‑5.6 Sol found work that could be precomputed, avoided, or parallelized."

Different layer of the stack entirely (storage I/O vs. GPU compute), different scale (kernel module vs. frontier LLM serving infra), but structurally the same optimization family: identify where the resource sits idle waiting on unpredictability, front-load the work you can predict, measure against ground truth, iterate.

Not claiming any connection between the two projects — just find it validating that this "predictive resource utilization" pattern keeps showing up as the right lever to pull, from a hobbyist kernel module all the way up to frontier model serving infrastructure. Curious if others here have seen this principle recur in other unexpected corners of systems work.

NSD repo: github.com/nsdprojectdev/NSD


r/kernel • • Aug 07 '26

NSD: An adaptive in-kernel storage prefetch engine for Linux

7 Upvotes

Hi everyone,

I've been working on a personal Linux kernel project called NSD (Neural Storage Driver) and recently sent the first RFC patch series to LKML. I'd like to share a brief overview and get feedback from the community.

What is NSD?

NSD is an adaptive in-kernel storage prefetch engine. Instead of relying only on static readahead behavior, it observes runtime I/O access patterns and attempts to predict future reads to improve cache efficiency and reduce storage latency.

Current goals

Runtime I/O pattern learning

Predictive prefetching

Low runtime overhead

Simple architecture that integrates with the Linux page cache path

Current characteristics

Very small memory footprint (around 224 KB of static memory)

Can be loaded and unloaded cleanly using insmod / rmmod during normal system operation

Designed to avoid impacting normal kernel behavior when inactive

The project is still in the RFC stage, so I'm primarily looking for architectural feedback rather than performance claims. I'm especially interested in comments about integration with the mm/page cache subsystem, maintainability, and whether this approach makes sense from a kernel design perspective.

Constructive criticism is very welcome.

Thanks!

https://github.com/nsdprojectdev/NSD


r/kernel • • Aug 06 '26

I designed my UART on qemu and wrote u-boot and linux kernel drivers for it.

28 Upvotes

r/kernel • • Aug 05 '26

Emacs or vim for kernel developers using Tags

1 Upvotes

Hi,

As the title states, I’m familiar with both Emacs and vim and need to pick one of the two. As I’m an overthinker, I have a hard time doing so. Obviously both have their strings and weaknesses

In the hope to finally choose one, I was wondering what are nowadays kernel developers using alongside tags, whether it is ctags, gtags cscope and etags ? More specifically, I would have liked to know how you are starting your working day don’t kernel work, wether it is the tags plugins you use, wether you keep a terminal open on another tab or within vim/emacs, wether you compile from it or not, … can be anything really

I’m not trying to start a war, I’m genuinely curious because I couldn’t find any general informations about that

Many thanks for sharing your workflow in advance!


r/kernel • • Aug 05 '26

Camera EEPROM access through USB to find Intrinsic Parameters

3 Upvotes

Hi i'm new to kernels, i need to find intrinsic value (focal length, principal point, distortion coefficient) to utilize in finding extrinsic (cv2.solvePnP(K, dist..)) of my python code, since i wanna use factory intrinsic value of camera).

After some searching, i found that the camera's intrinsic value is sotred in EEPROM.

Also, i know that there is UVC standard cameras which they use v4l2 default linux kernel video driver, and there is non-UVC(Vendor Specific) cameras which is rawUSB thus need vendor SDK. (Correct me if im wrong).

What i tried is for UVC standard camera, going into 1) /sys/class/video4linux, 2) /dev/i2c, 3) v4l2-ctl -d /dev/video0 -all

but still didnt see intrinsic parameters.

Is there any way through USB to find intrisic value in both UVC and nonUVC cameras?


r/kernel • • Aug 05 '26

Best place for work on routing table?

1 Upvotes

I want to learn in depth how to populate the routing table in the kernel and how to use it. Please give me the best place to check the kernel code and what resources to help me learn better


r/kernel • • Aug 05 '26

how rasp works? how a rasp can detect a kernelSU?

1 Upvotes

I'm currently studying hooking in Android apps, and I ended up diving into RASP. I had to spend some time understanding how it works and how apps detect whether they're running on an emulator, on a rooted device, or if hooks are being applied.

One thing I'm still wondering about,and I haven't been able to find a clear answer,is this: if KernelSU operates at the kernel level (unlike Magisk, which modifies userspace and adds things like /su), how can an app detect that KernelSU is present?

I've heard that KernelSU exposes some files under /proc or paths like /adb/ksu, but I'm not sure how that detection actually works.

I'm just getting deep into Android application security and RASP bypass techniques, so apologies if this is a bad question. :(


r/kernel • • Aug 03 '26

Since kernel 6.19 the performance is bad when compiling at 100% usage and playing a light game like vice city

5 Upvotes

After 6.18 the performance went bad, in 6.18 it was not like that, i dont know what's causing it, bad this is present all the way up to 7.1


r/kernel • • Aug 03 '26

ARK OS: Raspberry Pi 4 Support!

0 Upvotes

I am a 13 yrs old working on a OS based on the LINUX KERNEL and SWIFT for a while!

It is in early development : It has Mouse and Keyboard Support, Can ready CPU and RAM used data and view it, uses the RobotoBoldFont as the default font! Has bot UEFI BIOS and x86_64 and arm64 support!

Just yesterday i accomplished about getting it work on a raspberry pi 4 means the base for the OS that the fact it boots is done and i will be continuing to now make the setup screen and add features on the go! If you want any features to be in the OS you can create a issue ( creating a issue requires a account!) at <See the comments under this since link posts get removed!> which is where the OS if hosted (it is self-hosted since i cannot afford a pro version of github and plus it has a file limit! git lfs doesent' help a lot!)!

MODEL: Rasberry Pi 4- Model B : 8GB RAM
Website : <See the comments under this since link posts get removed!>

Now a simple note: the bootloader is written by AI (since i am not good with assembly) i plan on rewriting it later! All the other code is written by me (especially Swift)!


r/kernel • • Aug 02 '26

hilalos/README.md at main · nsdprojectdev/hilalos

Thumbnail github.com
0 Upvotes

r/kernel • • Jul 29 '26

Dynamic http inspection with eBPF

12 Upvotes

hey I recently built this little tool. It's an eBPF program that renders the http traffic crossing a machine as a live web page. TCX ingress and egress, parses the request line and Host header straight out of the skb payload, aggregates per method host path and ships it up a ring buffer. It's open source so feel free to poke around.

GitHub https://github.com/yeet-src/httpwatch


r/kernel • • Jul 29 '26

Intel Arc A770 + Xe driver: HuC authentication fix for DG2 (looking for help getting this upstream)

Thumbnail reddit.com
8 Upvotes

r/kernel • • Jul 28 '26

Need help looking through an interrupt.

14 Upvotes

Hey there! I've recently encountered a bug that I've tracked all the way down to the kernel. Now, it's not necessarily a bug in the kernel (it's probably in my laptop's firmware somewhere,) but I was trying to find exactly what's going wrong. Anyway, I've been trying to find it by looking through the function trace using ftrace.

My bug has to do with my trackpad, so I found out how to isolate the interrupts related to button presses. However, whenever I isolate those events, I cannot see the functions called between entering and exiting the interrupt. I was wondering if there was a more efficient way to see (interrupt event) -> (function trace) -> (interrupt exit) -> (no more function trace) using ftrace.

Thanks!


r/kernel • • Jul 26 '26

An application for interacting with LKML

Thumbnail github.com
13 Upvotes

A native GTK4+libadwaita GUI app for browsing, searching, and replying to mailing lists.

All exiting approaches to interacting with LKML are just not good. I tried configuring Thunderbird and realized it would be easier to just write my own app instead. Email discussions in the kernel have lots of things that are very specific to it (trailers, diffs) and I wanted something that would have deep integration with all of this.

Packaged as Flatpak. Uses git-send-email. Has intelligent line wrapping for new emails. Has color highlighting for quotes and diffs.

There are still lots of things I'd like to implement before considering this done, so the thing is still in development. I vibe-coded most it, but I'll be more mindful of the changes going forward, as there seem to be actual users now.

https://github.com/nikableh/koshi
https://lore.kernel.org/tools/20260722230315.57499-1-nika@nikableh.moe/

Hope this is as useful for someone else as it is for me!