Skip to content
Advertisement

Tag: linux-kernel

Serial port hangs on close()

I developed this simple kernel module, which emulates a serial port by using a FIFO queue and a timer (read from hardware : out from the queue, write to hardware : insert in the queue). Source code is shown next. Then, I wrote a simple test-application which configures the port settings (baud rate, parity, stop bits, etc) and starts a

Does linux process VSZ equal 0 mean kernel space application?

I notice some process always have VSZ as 0 how to understand why they have 0 VSZ? Answer VSZ is the Virtual Memory Size. It includes all memory that the process can access, including memory that is swapped out, memory that is allocated, but not used, and memory that is from shared libraries. So, the top command screenshot you shared

GDB: breakpoint in linux built-in module fails

I am debugging linux kernel using two virtual machines connected via serial port. Target machine awaits connection from remote gdb, by inserting kgdbwait() and kgdboc=ttyS0,115200 in the correct entry in /boot/grub/grub.cfg. In Host machine Symbols are read and I am supposed to be able to put breakpoints on function names. Works fine! However, if I set a breakpoint at htb_dequeue_tree

Advertisement