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

two Linux kernel modules access one i2c slave device

I have 2 Linux kernel modules that both of them need to access the same device through i2c and I am trying to figure out how it is going to work.The way I see it is that I have come up with anther...

View Article


Kernel API to know up address of interface

Is there any kernel side/space API to know the ip address of an interface , given it's name?

View Article


Why we need wait_queue_head_t, isn't wait_queue_t is already a list?

In use case, we can seevoid add_wait_queue(wait_queue_head_t *q, wait_queue_t *wait)We add wait_queue_t to a wait_queue_head_t.I don't understand, the wait_queue_t is already contained a...

View Article

Image may be NSFW.
Clik here to view.

Python 3:Not started when trying to run Jupyter notebooks on VS Code

[1This is the image of my Vs codeI'm trying to run Jupyter notebooks on but I get the error on the bottom right.Not sure whats causing this but I think its because of the error at the top right,...

View Article

Why check (&cwq->worklist) not check (&cwq->more_work)?

In Linux Kernel Development 3rd edition.Chapter 8, 8.4.1.2for (;;) { prepare_to_wait(&cwq->more_work, &wait, TASK_INTERRUPTIBLE); if (list_empty(&cwq->worklist)) schedule();...

View Article


mprotect PROT_EXEC on noexec partition

I tried mmap-ing (more specifically dlopen fails on mmap) a file from disk partition that was mounted with the noexec flag and it resulted infailed to map segment from shared objectHow does the kernel...

View Article

NMI Watch dog triggered on isolated CPUs even after adding needed kernel...

I am developing a kernel model that has two kernel threads - A and B. Lets' assume kernel thread A is producer and kernel thread B is a consumer. These threads are pinned to cores 37 and 38 in a 40...

View Article

I don't kow what are the files which are supposed to be in asm/

I'am new on linux and I try to compile this code https://elixir.bootlin.com/linux/v4.0/source/drivers/w1/slaves/w1_ds2433.c (my target is to create a ds2433.ko and if it works a ds28ec20.ko)When i...

View Article


Unable to start kernel for jupyter notebooks in a specific directory

No problem in other directories. Is there an environmental variable or something else I need to erase?Deleted cache file...

View Article


Having a problem about C pointers and how they work in memory

PWORD exported_ordinalsTable = (PWORD)((ULONG64)kernel_module_base + p_export_dir->AddressOfNameOrdinals); PDWORD exported_ordinalsTable = (PDWORD)((ULONG64)kernel_module_base +...

View Article

Why worker_thread() check (&cwq->worklist) not check (&cwq->more_work)?

In Linux Kernel Development 3rd edition.Chapter 8, 8.4.1.2, worker_thread()for (;;) { prepare_to_wait(&cwq->more_work, &wait, TASK_INTERRUPTIBLE); if (list_empty(&cwq->worklist))...

View Article

How do WINDOWS func kernel drivers communicate with actual hardware?

So I understand that a kernel driver sits on top of HW device and then to communicate with the device via user space you will need to talk to the kernel driver via CreateFile && Read &&...

View Article

Use of OpenACC over OpenCL?

I am new to OpenACC which is a new programming standard for GPU Acceleration as well as CPU. As per my knowledge OpenACC is a language which is a compiler directive, directly we can accelerate the code...

View Article


About the ceph kernel client's relationship with physical memory?

The CEPHFS cluster is deployed in vmware virtual machines,The virtual machine memory configuration is 4GTest with FIOThe order is as follows:fio -name=task1 -filename=/mnt/testcephfs/fio-test-1...

View Article

LFS boot up - Kernel panic not syncing VFS unable to mount root fs on unknown...

I have recently completed the LFS guide and did everything according to it in detail, step-by-step. However, after I did the final step and rebooted (1st time) the bootup failed with " LFS boot up -...

View Article


While I'm trying gcc make linux-headers-`uname -r` I'm getting error

I was trying to install droidcam Linux client. when I run the commandgcc make linux-headers-`uname -r`I'm getting the following error:gcc: error: make: No such file or directorygcc: error:...

View Article

Kernel panic on linux-omap 4.3.0-rc5 on IGEPv2 board

I'm trying to run the latest linux-omap kernel Linux-4.3.0-rc5-12674-g80923cf8e that I got from the official linux-omap GIT.I compiled it with the multi_v7_defconfig, disabling unneeded boards and...

View Article


How to check kernel version in Makefile

How can I check my kernel version in my Makefile ??Based on the kernel version I want to select some of the header files accordingly.

View Article

Why is getpid implemented as a system call?

I'm in the middle of taking my first OS class, so hopefully I don't have any big misconceptions here.I was wondering why getpid() is implemented as a system call in Linux. As I understand it, certain...

View Article

Java process not respoding but resuming after I do a thread dump with jstack -F

I have an weird issue with a Java process which is stuck (once/twice per day) and it only recovers after I execute:jstack -F ${PID}While the Java process is stuck, If I try to do a thread dump with...

View Article
Browsing all 6333 articles
Browse latest View live


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