How to write Piano using thread programming?
I have written a program of piano that is controlled by user mouse movement. Actually in this program i am capturing the mouse event and detect the mouse cursor current position and according to that i...
View ArticleUnable to mount CIFS share. RHEL 7.7
I am trying to mount a CIFS a shared folder but i am having this error.[root@REPLICA01 Packages]# mount //Cloud/files01/guardium/respaldo_sistema /prueba001 -o user=respaldos_tsm --verbosePassword for...
View ArticleWhat is the default size of datagram queue length in Unix Domain Sockets...
I know the maximum length of a datagram queue length can be found using "cat /proc/sys/net/unix/max_dgram_qlen". I wanted to know how to find the default value that is set on boot up (like in case of...
View ArticleECC in NAND chip, where oobsize has changed?
I am presently working on replacing the nand chip, where the oobsize has changed from x to y. This means that ecc also changes. Can anyone guide me what ecc is? What is OOBSize in nand chip, how are...
View ArticleIncorrect time inside kernel space using ktime_get_real_ts64
I'm writing a kernel module (LKM) and need to print correct time. This is my code:static int __init modtime_init(void) {printk("Entering: %s\n",__FUNCTION__);//************************time...
View ArticleDoes linux use asychronous write for swapping when memory pressure is high?
I'm studying in Linux kernel swapping.To my understanding, swap is performed by a demand thread and use asynchronous IO for dropping.Does it mean that we need to wait for asynchronous IO when the...
View ArticleAdd memory device to QEMU
I want to extend the current QEMU implementation with a custom DRAM device, that has a memory controller and with a more detailed physical view (row/banks).The idea is that every memory access to the...
View ArticleLinux kernel print_hex_dump_bytes
I use print_hex_dump_bytes function as following in Linux kernel: print_hex_dump_bytes("digest: ", DUMP_PREFIX_ADDRESS, digest, 32);The output is as follows, what does the part inside the red box mean?
View ArticleStarting DMA transaction from irq handler in linux kernel
I am developing driver for beaglebone black like board. Driver communicate with FPGA. When FPGA has data to read it triggers an irq. So I have to quickly start DMA transaction to read data. Is it...
View ArticleUSB: why USB devices the modules automatically loaded
I have am335x related customized board and kernel(4.4.16) source codeI configure the FTDI module driver. so after kernel start successfully I attach ftdi converter to usb port and then type lsmod...
View ArticleModify core dump disk space utilization per node
As per the official man page documentation for coredump.conf, the core dump disk space utilization per node in Kubernetes can be modified by changing the MaxUse section to X%, and by default, it is...
View ArticleERROR: modinfo: could not find module
I am installing new kernel 3.12.x on redhat 6 machine. Below is my steps which I followed to install the new kernel.extract kernel in /usr/src/ directorySwitch to cd /usr/src/linux-3.12.xmake...
View ArticleLinux - I want to reset my linux machine to og settings
Like the title says, I have tried rebooting but it turns it on and off. Ideally, I would like to restore my machine to the settings it had 12 days ago, although idk if this is possible since there is...
View ArticleUnix create multiple files with same name in a directory
I am looking for some kind of logic in linux where I can place files with same name in a directory or file system.For e.g. i create a file abc.txt, so the next time if any process creates abc.txt it...
View ArticleHow to use ebtables inside Docker?
When I run /sbin/ebtables --list in a Ubuntu Docker container, I get the message:root@500790dca629:/core-release-4.8# /sbin/ebtables --list modprobe: ERROR: ../libkmod/libkmod.c:557...
View ArticleQuestions on scull_follow function in linux device drivers 3rd edition
I never found the definition for scull_follow in the book, so I'm trying to understand it based off a github repo(https://github.com/martinezjavier/ldd3).Here is the code I am trying to...
View ArticleHow to start developing PostgreSQL and add support of io_uring? [closed]
I have set up an EC2 instanceDownloaded and installed the latest kernelConfigured liburingDownloaded and installed PostgreSQL*I am unable to find which file to update yo include the support!I have...
View ArticleWhat are the "struct file_operations" arguments?
I'm implementing a Linux character device driver.The linux/fs.h header file lists the file_operations without argument names.e.g.struct file_operations { struct module *owner; loff_t (*llseek) (struct...
View ArticleHow to add poll function to the kernel module code?
as I know, to inform the user space from kernel space, one way is to using poll. That means kernel driver should provide poll method first.Below code is found from internet, and it really...
View ArticleHow to unload an overlay loaded using ACPI_CONFIG_SYSFS
https://www.kernel.org/doc/html/latest/admin-guide/acpi/ssdt-overlays.html gives the following method to load an overlaycd /config/acpi/tablemkdir my_ssdtcat ~/ssdt.aml > my_ssdt/amlThis method only...
View Article