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

linux headers are consuming a lot of disk space on the EC2 machine. Is it...

EC2 machine on aws is filled with multiple linux headers and currently / is 100% full on disk space. I ran commands like apt-get autoremove but it is throwing an error saying No apport report written...

View Article


Showing error while making the code in kernel

I was trying to run hello world program in kernel but I'm getting this error when i make the code.creatorspace@creatorspace-VirtualBox:~/Modules$ sudo make[sudo] password for creatorspace: make -C...

View Article


Can file copying be CPU-bound?

As far as I know, the CPU is usually faster than an I/O device (like the HDD, the network, RAM, etc.), so when copying a file the bottleneck is usually I/O-bound (right?).If under some condition that...

View Article

Killed: terminated the process

This is Python code, I wrote in my vim editor and run this program Ubuntu terminal.millions = list(range(1, 100_000_000_0))for million in millions:print(million)output: 'Killed'What is meaning 'killed'...

View Article

How to print the list of filesystem in Linux kernel?

What I'm trying to do is to list the all of the registered filesystem in a linux kernel module.I tried writing code like below in reference to...

View Article


Removing individual BPF filter

I'm attaching three different BPF programs as ingress filters as follows:tc filter add dev eth0 parent ffff: bpf direct-action obj bpf1.o sec classifier flowid ffff:1tc filter add dev eth0 parent ffff:...

View Article

I'm unable to build the simple hello world kernel module from kernel 5.10.11

I am using kernel 5.10.11 in KALI and I'm trying to learn kernel module programming but I'm unable to build the module.I have tried all the solutions given on the internet but they're not working for...

View Article

How do you legally sell a hardware product that uses the Linux kernel?

I would like to create a Linux-based OS for a VR headset that I'm developing. From what I understand, the Linux kernel uses the GPL-2 license which allows for commercial use but it also requires you to...

View Article


Interrupt Nested, Sequencing

I am reading the Linux Kernel documents and I have these questions(X86_64 Arch);When PIC sends an interrupt to CPU, will that disable that specific interrupt till the acknowledgement comes from CPU? If...

View Article


How to select the value of a string option from another option in Kbuild...

For Boolean config, I am using select. Is there a similar one for string?Eventually, I would like to have something like:config MY_VAR_STRstringconfig MY_VAR_BOOLbooldefault nconfig OPTION_2bool# Set...

View Article

What addresses does ASLR randomise in linux?

From what I understand:There is a memory management unit on the CPU which controls access to the actual memory. Any memory calls flow through this unit which converts virtual addresses to real memory...

View Article

Eudyptula Challenge and kernel path

I have decided to take the Eudyptula Challenge.After I submitted the first task which is to build a simple "Hello World!" module, I received the following answer.Please read the requirements for the...

View Article

How configure modem interface for linux [closed]

I am currently writing c ++ applications to manage interfaces on a separate linux board. On the board with ports I have access to USB and RS232, to which I would like to connect the modem (if USB, then...

View Article


How does the ip command enforces its routing policies?

Recently I tried to send some data over a raw IPv6 socket via sendmsg(). It failed and returned EACCES/Permission denied because I forgot to set any routes or a default gateway on the interface.During...

View Article

How to get a repository in SQL server from Linux server and install them?

I have two servers A and B. In server A, I have downloaded some PYPI library packages in a repository. How can I get the repository in the server B and how can I install them in server B?

View Article


Unable to encode raw frames to H264 using V4l2h26enc

I am using Raspbain 10 (Buster) to decode mp4 file using v4l2h264dec and then again encode using the V4l2h264enc, but unable to do so. So far, I am successful to decode mp4 file but problem arises when...

View Article

How to configure the modem connected to usb in linux?

I have a separate Linux board built via Buildroot. now I would like to connect the modem to the usb port on the board. from the modem side I have a DB9 socket so I used the RS232-USB adapter. However,...

View Article


How to use Andriod "fastboot boot" to load image at specified address

I would like to use, fastboot boot command to load an image file(a DTB image file) to a specified addressin DRAM, I see there is an option "-b <base_addr>", so I tried this: fastboot boot -b...

View Article

kthread stopped without running

If I create a kernel thread with kthread_run then kthread_stop it immediately, the kernel thread might be stopped without running. I checked the source code of kthread_run and kthread_stop in...

View Article

Where can I find the Process Control Block (PCB) and GDTR/LDTR contents using...

I have a barebone linux kernel with buildroot setup for debugging using QEMU and GDB. I am using the x86_64 architecture.I want to check how the memory protection works for each process. So basically,...

View Article
Browsing all 12244 articles
Browse latest View live


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