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 ArticleKernel 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 ArticleWhy 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 ArticlePython 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 ArticleWhy 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 Articlemprotect 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 ArticleNMI 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 ArticleI 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 ArticleUnable 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 ArticleHaving 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 ArticleWhy 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 ArticleHow 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 ArticleUse 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 ArticleAbout 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 ArticleLFS 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 ArticleWhile 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 ArticleKernel 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 ArticleHow 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 ArticleWhy 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 ArticleJava 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