UNIX Command $grep -c pack resume.txt 0 $grep -c Linux resume.txt 9 $grep -c Lin resume.txt 9 $grep -c Li resume.txt 9 $grep -c L resume.txt 15 $grep -c engineer resume.txt 2 $grep -c 1976 resume.txt 1 $grep -c GNU resume.txt 5 $ UNIX Explanation For (grep -c) Suppress normal output; instead print a count …
Daily Archives: December 10, 2011
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 …
Continue reading “maps memory maps to executables and library files”
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 …
Continue reading “mca_disable_dma – channel to disable DMA on”
write_inode_now – write an inode to disk
1. write_inode_now – write an inode to disk This function commits an inode to disk immediately if it is dirty. This is primarily needed by knfsd.
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 …
Continue reading “[PATCH] udf: Fix deadlock when converting file from in-ICB one to normal one”