maps memory maps to executables and library files

1.Classroom maps Memory maps to executables and library files Get The Hang $sudo cat /proc/971/maps 00400000-00408000 r-xp 00000000 08:01 7422174 /sbin/syslogd 00607000-00608000 rw-p 00007000 08:01 7422174 /sbin/syslogd 00608000-00609000 rw-p 00000000 00:00 0 01429000-0144a000 rw-p 00000000 00:00 0 [heap] 7fd360fa5000-7fd360fb0000 r-xp 00000000 08:01 1466895 /lib/x86_64-linux-gnu/libnss_files-2.13.so 7fd360fb0000-7fd3611af000 —p 0000b000 08:01 1466895 /lib/x86_64-linux-gnu/libnss_files-2.13.so 7fd3611af000-7fd3611b0000 r–p 0000a000 08:01 1466895 …

mca_disable_dma – channel to disable DMA on

1. mca_disable_dma – channel to disable DMA on void mca_disable_dma(unsigned int dmanr); dmanr DMA channel 2. Classroom First of all, DMA (per se) is almost entirely obsolete. As originally defined, DMA controllers depended on thefact that the bus had separate lines to assert for memory read/write, and I/O read/write. The DMA controller took advantage of …

vfs_lock_file – file byte range lock

1. vfs_lock_file – file byte range lock 2. Manual int vfs_lock_file(struct file * filp, unsigned int cmd, struct file_lock * fl, struct file_lock * conf); filp The file to apply the lock to cmd type of locking operation (F_SETLK, F_GETLK, etc.) fl The lock to be applied conf Place to return a copy of the …

[PATCH] udf: Fix deadlock when converting file from in-ICB one to normal one

[PATCH] udf: Fix deadlock when converting file from in-ICB one to normal one During BKL removal, conversion of files from in-ICB format to normal format got broken. We call ->writepage with i_data_sem held but udf_get_block() also acquires i_data_sem thus creating A-A deadlock. We fix the problem by dropping i_data_sem before calling ->writepage() which is safe …

tcp_rmem – vector of 3 INTEGERs: min, default, max

ABOUT tcp_rmem min: Minimal size of receive buffer used by TCP sockets. It is guaranteed to each TCP socket, even under moderate memory pressure. Default: 1 page default: initial size of receive buffer used by TCP sockets. This value overrides net.core.rmem_ default used by other protocols. Default: 87380 bytes. This value results in window of …

BusyBox – The Swiss Army Knife of Embedded Linux

UNIX Command $dpkg -L busybox /. /bin /bin/busybox /usr /usr/share /usr/share/man /usr/share/man/man1 /usr/share/man/man1/busybox.1.gz /usr/share/doc /usr/share/doc/busybox /usr/share/doc/busybox/copyright /usr/share/doc/busybox/changelog.Debian.gz $mount /dev/sda1 on / type ext3 (rw,errors=remount-ro,commit=0) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,size=5242880,mode=755,size=5242880,mode=755) tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=755,size=10%,mode=755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) udev on /dev type tmpfs (rw,mode=0755) tmpfs …

fs: Make write(2) interruptible by a fatal signal

Kernel Space linux-fsdevel@vger.kernel.org : Currently write(2) to a file is not interruptible by any signal. Sometimes this is desirable, e.g. when you want to quickly kill a process hogging your disk. Also, with commit 499d05ecf990 (“mm: Make task in balance_dirty_pages() killable”), it’s necessary to abort the current write accordingly to avoid it quickly dirtying lots …