Questions tagged [linux-kernel]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
0 answers
93 views

Better alternative for cherry picking across heavily diverged branches

I'm currently trying to update the linux kernel used in a xilinx SoC, my company has an internal repo/fork of xilinx open source linux with a bunch of kernel drivers for our custom hardware & ...
user avatar
  • 29
-5 votes
2 answers
83 views

Feasibility of adding drivers to linux kernel

I have question regarding Linux kernel , as far as I understand, to make Linux compatible with different machines and hardware , different device driver is added to the Linux . I want to ask how much ...
user avatar
2 votes
2 answers
162 views

Can the operating system "break up" a memory allocation (Linux)?

Let's say a process (P1) is asking for 100 MB of memory, and the RAM looks like this: [[50 MB free] [USED] [60 MB free] [USED]] Since there are technically enough memory that are available (110MB ...
user avatar
  • 163
2 votes
3 answers
102 views

Is it cleaner to decrement a sleeping process counter in the waking process or the woken process?

Say I have a reader and a producer that share a buffer. I have a wait queue for the reader to put itself in if there is no contents in the buffer when it reads. I also have an atomic variable for ...
user avatar
1 vote
2 answers
82 views

What does the inode point to in case of a device file other than the disk?

I know that the inode points to the actual disk blocks in the case of the normal file system. But what does it point to in the case of .... say .... the terminal device file. Does it point to the ...
user avatar
0 votes
0 answers
69 views

Assigning weights dynamically to ensure equal distribution

Scenario:- The load balancer distributes traffic to backends with a simple round-robin mechanism. With default config, each backend is assigned weight "1" so all backends are given equal chance of ...
user avatar
-1 votes
1 answer
141 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: ...
user avatar
  • 115
3 votes
1 answer
96 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 would ...
user avatar
  • 3,319
-1 votes
1 answer
106 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 ...
user avatar
1 vote
1 answer
209 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 ...
user avatar
0 votes
1 answer
173 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: ...
user avatar
  • 2,225
0 votes
3 answers
179 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 ...
user avatar
  • 119
-1 votes
1 answer
209 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, ...
user avatar
  • 101
1 vote
1 answer
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 ...
user avatar
0 votes
1 answer
62 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 ...
user avatar
  • 1,099
5 votes
1 answer
700 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 ...
user avatar
  • 163
-1 votes
1 answer
387 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 ...
user avatar
  • 19
-1 votes
2 answers
974 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 at ...
user avatar
0 votes
2 answers
676 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?
user avatar
4 votes
3 answers
3k 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 ...
user avatar
  • 4,948
2 votes
2 answers
361 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 ...
user avatar
  • 123
40 votes
2 answers
83k 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 ...
user avatar
8 votes
3 answers
5k 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 ...
user avatar