Disable text cursor in custom terminal in C
this might already be answered somewhere, so would appreciate a link if so.I have successfully enabled a blinking cursor on my OS terminal (linux-based) using the following method:#define FB_CMD_PORT...
View ArticleIntercept keyboard input using kernel loadable module
I am working on a kernel module that intercepts the read function. It successfully intercepts read calls. But I cannot print the keyboard key presses by printing the buffer. My goal is to intercept the...
View ArticleCalling a function from member inside array in another array
I was creating a custom operating system and I have a problem. I have an array of child components in an array of all opened windows. When I call a function CDraw (Component Draw) on the child array...
View ArticleJupyterLab - Stuck at "Kernel Reconnecting" - Python 3
After starting up JupyterLab through the CMD, it opens up and I select Python 3 Notebook, the editor opens up but it just stays stuck at "Kernel Reconnecting".Anyone had the same issue and figured out...
View ArticleLinux operating system ( Ubuntu) [closed]
I am tying sudo apt-get install gparted command on terminal but it is not working properly and showing this error. What could be the problem?E: Could not get lock /var/lib/dpkg/lock - open (11:...
View ArticleA process's files, the relation between files in mm_struct and files_struct?
In task_struct, we can find there are:struct mm_struct *mm, *active_mm;struct files_struct *files; files_struct contains pointers to up to 256 file data structures, each one describing a file being...
View ArticleAndroid Kernel panic Debugging - Android 10
I am currently building a lineage rom for SM-P555 Samsung Galaxy Tab A deviceFull dmesg log https://hastebin.com/ifavimodum.yamlThe tablet hangs at boot up as shown in...
View ArticleUsing mutex to synchronize two kernel threads causes a system panic
I used the following code to synchronize the two kernel threads. After running, panic occurred in the system and abnormal memory was found in mutex by kdump. What is the reason for this?struct request...
View ArticleOOM kernel panic memory sum up is not correct
There's a oom message on a 128M DDR embeded device, which shows only 1.5M free memory.but I sumed up all used memory, which show only used a small memory.Mem-Info:active_anon:1763 inactive_anon:47...
View ArticleWhat is the event that XDP socket is attached to?
I am developing a kernel module that registers to the receive handler like this:rx_handler_result_t rxhPacketIn(struct sk_buff **ppkt)However, when I tried to use this kernel module program with XDP...
View ArticleIcons are not showing when using desired environment in JupyterLab
My jupyter lab is not showing any iconsHere is how it's appearing This is when i run jupyter lab using these 2 commandsconda activate python_cvcoursejupyter-labBut if i use onlyjupyter-labto launch the...
View ArticleUser time execution and kernel time on two different resources
I have a question about how is possible to modify the Linux scheduler(Linux kernel in general) to specify resources (CPUs) to run an application, to be clear, I'm wondering is there any way (even not...
View ArticleSaving the value of registers during context switch
During Context Switching, the kernel saves the state of current process (process1) and restores the state of the other process (process2) into CPU (loads the various registers with the previous values...
View ArticleWith the Intel's xHC, what are the virtual memory requirements?
Not long ago, I had an identity mapped kernel that was running in the low 10MB of RAM. Lately, I decided to move the kernel to the upper half of the virtual address space because this is what most...
View ArticleTurtle Canvas Crash
This code causes python to crash. Then when I run it again, I get this error: "Error: Session cannot generate requests." I try restarting the kernel but it just never recovers. I have to close VS Code...
View ArticleVirtual audio driver (microphone)
I want to develop a virtual microphone driver. Please, do not say anything about DirectShow - that's not "the way". I need a solution that will work with any software including Skype and MSN. And...
View Articlenet.ipv4.tcp_challenge_ack_limit parameter is not added in container network...
emphasized textI am trying to set net.ipv4.tcp_challenge_ack_limit parameter inside container but it gives me error as "open /proc/sys/net/ipv4/tcp_challenge_ack_limit: no such file or directory:...
View ArticleBTF: .tmp_vmlinux.btf: pahole (pahole) is not available
Getting this error while compiling the kernel version :5.7-rc4BTF: .tmp_vmlinux.btf: pahole (pahole) is not availableFailed to generate BTF for vmlinuxTry to disable CONFIG_DEBUG_INFO_BTFmake: ***...
View ArticleWhat happens if I don't call free_irq() in the driver's exit function?
So, I wrote a basic char driver with IRQ_NO 1 for keyboard and registered a shared handler function for it. In this exit function I don't free the handler using free_irq(). In the dmesg logs I can see...
View ArticleCould not find a kernel matching Python 3. Please select a kernel
After I tried to install and register a new virtual environment so I can use it in Jupyter notebook, I ended up with the following problem: any notebook I open or create it displays the error message:...
View Article