Questions tagged [kernel]

In computing, the kernel is a computer program that manages input/output requests from software, and translates them into data processing instructions for the central processing unit and other electronic components of a computer. The kernel is a fundamental part of a modern computer's operating system. This tag is for general questions regarding code that runs in the context of an operating system kernel.

This tag is for general questions regarding code that runs in the context of an operating system kernel (kernelspace, as opposed to userspace), including writing custom kernels. Questions about specific kernels should use a relevant tag (eg. , , ).

This tag is not about other uses of the word "kernel" - for example, questions about CUDA kernels should use the tag.

SOURCE

Wikipedia

9344 questions
3
votes
1 answer

What are the alignments referred to when discussing the strings section of a process address space

I'm trying to write a program to expose the arguments of other pids on macOS. I've made the KERN_PROCARGS2 sysctl, but it turns out that everyone and their dog use this wrong. Including Apple's ps, and Google's Chrome. The exec family of functions…
Camden Narzt
  • 2,271
  • 1
  • 23
  • 42
3
votes
1 answer

Can't load kernel binary:Invalid SDK hash

I want to run flutter web after write flutter channel beta it replies: Can't load kernel binary:Invalid SDK hash, do you know how to solve this problem?
Tina_Shv
  • 39
  • 2
3
votes
1 answer

Is there any way to calculate CPU load on current android versions?

My actual goal is to the calculate CPU load of the phone. But this seems not possible on Android 8+ devices. Because the access to /proc/stat is restricted on API 26. So I am trying to calculate my app's CPU load in my app. This can also work on my…
Mustafa Kuloğlu
  • 1,122
  • 1
  • 8
  • 16
3
votes
1 answer

How to delete all the kernels in VSCode?

I'm always using VSCode and some time ago I uninstalled anaconda. The problem is that when I use the Jupyter notebooks in VSCode if I don't remember of changing it, the kernel that it use as default is "opt/anaconda3/bin/python" that is gone. So,…
3
votes
2 answers

how to implement an atomic assignment on AIX/powerpc?

I'm porting a kernel extentsion to 32/64 bit AIX on multi-processor PowerPC, written in C. I don't need more than atomic read operation and atomic write operations (I have no use for fetch-and-add, compare-and-swap etc.) Just to clarify: to me,…
Idan K
  • 31
  • 3
3
votes
3 answers

clock_getres and Kernel 2.6

i'm using ubuntu 11.04 now and using v2lin to port my program from vxWorks tolinux. I have problem with clock_getres(). with this code: struct timespec res; clock_getres(CLOCK_REALTIME, &res); i have res.tv_nsec = 1 , which is somehow not…
Peacemoon
  • 3,198
  • 4
  • 32
  • 56
3
votes
1 answer

breakpoint setting in nt!KiSystemCall64 not working

I want having a deep dive into ntdll!NtQueueApcThread seeing what happen after syscall instruction is executed. According to the document(Intel® 64 and IA-32 Architectures Software Developer’s Manual), the syscall instruction using the msr's LSTAR…
FWTBwAh8
  • 61
  • 5
3
votes
1 answer

Reading data from mm_struct or vm_area_struct of user process

I was wondering how I would go about copying data from a page of a user process while in kernel mode. I have access to the mm_struct and all the vm_area_structs of the process. In vm_ops I saw the access method but I am unsure of how that works. Any…
Jesus Ramos
  • 22,940
  • 10
  • 58
  • 88
3
votes
2 answers

fatal error : aux.h No such file or directory (Ubuntu)

I'm learning how to compile the Linux kernel on Ubuntu. Following step by step, I encountered errors like this. There is no problem until $ sudo make menuconfig but sudo make doesn't work. I installed these libs. sudo apt-get install…
user12451939
3
votes
0 answers

how do we call assembly function in c?

Hello :) i got a serious problem to call my assembly function in my c program, it said that it's undefined reference. here my assembly code : [GLOBAL gdt_flush] gdt_flush: mov eax, [esp+4] ; Get the pointer to the GDT, passed as a parameter. …
YoloSama
  • 53
  • 5
3
votes
1 answer

How can I make android print out core dumps for crashing system applications?

I'M writing some stuff in the wonderful world of system libraries, and I'm getting crashes in libc, which my library is apparently passing bad values. Is there any way that I can have Android generate a core dump for the crashing application so I…
alexgolec
  • 26,898
  • 33
  • 107
  • 159
3
votes
0 answers

make kernel 5.9 error FAILED: load BTF from vmlinux

make kernel 5.9 what can i do? using ubuntu 20 this is error message in terminal FAILED: load BTF from vmlinux: Unknown error -2make: *** [Makefile:1162: vmlinux] Error 255
3
votes
0 answers

Cannot get ACPI GPEs and notifications to work

Recently, I've been working to get ACPI fully working on my x86 educational Linux-compatible kernel called Tilck. In order to that, I've integrated the latest version of ACPICA (ver. 20200717) and I've implemented the whole OS services layer. After…
vvaltchev
  • 609
  • 3
  • 20
3
votes
1 answer

kernel GridSearchCV parameters

can we search for the kernel in Gridserach as below: and what parameters combinations we should avoid? parameters = {'C': [0.1, 1, 10, 100, 1000], 'gamma': [1, 0.1, 0.01, 0.001, 0.0001,'auto'], 'kernel': ['linear',…
3
votes
1 answer

Kernel.loop method requires 'do' . Semicolon not allowed?

With certain constructs, I have the choice of using a semicolon or the do keyword to delimit the end of a statement, as with the until example below. until x == 100 do puts x; x+=1 end until x == 100; puts x; x+=1 end But this is not possible…
Tim