Questions tagged [linux-kernel]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
41 views

How state updates to existing instances/sessions are generally done?

This is a very broad question, but maybe someone has a worthwhile response. There is a general synchronization issue that often has to be solved, but always seems to be difficult. Here's an example: ...
3
votes
1answer
91 views

What security practices do I employ when building a library that requires low level root access to certain devices and files?

Backstory I am writing a library that accesses the kernel module, uinput which allows you to create or take control of devices in /dev/input/event#, and insert events into them. A simple usecase ...
-1
votes
1answer
82 views

Implications of using Kbuild infrastructure in proprietary software [closed]

We have our own proprietary software that we are developing for commercial business. We want to sell the software and we do not have any problem in distributing the source code to our customers. Due ...
1
vote
1answer
137 views

Managing Linux Kernel Config Files in Revision control

I am working on some Linux kernel drivers for a specific embedded system (NVIDIA Tegra X1). I am using the kernel source provided by NVIDIA (L4T), which has its own default kernel config files. My ...
0
votes
1answer
166 views

Design improvement - C

Below is the design, that is implemented similar to design used in Linux/net/socket.c. Below design provide List abstraction, where, list.h provides List interface, show here Background: ...
0
votes
3answers
128 views

Can the Linux kernel be described as a Server?

I am developping an Android application that is using NDK in order to access to data from the Linux kernel. As you may know, this is done using IPC (Inter Process Communication) through Android's ...
-1
votes
1answer
79 views

Finding register parameters for system calls

By consulting various scattered tutorials and books, I've been able to learn that the 64-bit Linux "exit" system call is 60, and the status value is moved to edi. Similarly, "write" has call number 1, ...
1
vote
1answer
1k views

What does using pointer in Linux kernel imply?

So far I was under the perspective that while working in the kernel code, working with memory implies working with long integers and not pointers because dereferencing pointers shouldn't be done in ...
0
votes
1answer
57 views

Accessing struct attribute: casting vs field name

I was just going over some kernel code, I noticed that rb->__rb_parent_color = (unsigned long)p | color; is kinda wired. The first field of a struct is accessed by casting the pointer and not by ...
5
votes
1answer
538 views

Why do some embedded projects shun cross-compiling?

As I've been getting into embedded systems I've noticed that some projects (Arch Arm and OpenBSD for example) frown upon cross compiling. What is the reasoning for this? Is a cross-compiled binary ...
-1
votes
1answer
347 views

Linux kernel development

I am trying to understand the linux kernel and there is one thing that is puzzling me for quite a while. As linux is used across variety of platforms (like smartphones,desktop,supercomputers etc) and ...
-1
votes
2answers
859 views

Theoretical basis for (Linux) kernel development

KernelDevViewpoint (an apparently serious source) makes kernel development look like an accessible art. According to them: Contrary to popular belief, kernel developers rarely need to know math ...
0
votes
2answers
576 views

Are monolith and microkernel design patterns or strategies?

What's the difference between a design pattern and a strategy? Is the monolith actually an anti-pattern?
3
votes
3answers
2k views

What is a good way to learn about multicore programming at the kernel level in Linux? [closed]

I am interested in multicore programming at the kernel level. I expect this affects many areas and is probably different for each architecture. What are some must read sections of the kernel? If I ...
2
votes
2answers
339 views

Estimation Techniques for Linux Kernel Development

I am working in Linux Kernel area and my work includes: code study / Understanding Porting (say from one kernel version to another kernel version) Implementation of new kernel module / Device driver ...
40
votes
2answers
78k views

How to become a Kernel/Systems/Device driver programmer? [closed]

I currently work in a professional capacity as a software engineer working with the Android OS. We work at integrating our platform as a native daemon among other facets of the project. I primarily ...
8
votes
3answers
4k views

reading and understanding c code

I want to understand the linux kernel code, and I have been going through it but I am not able to get the full feel of what is happening(I am concentrating on network part of the linux kernel), so can ...