02 2013 档案

tty_alloc_driver
摘要:/inclue/linux/tty_driver.h/* Use TTY_DRIVER_* flags below */#define tty_alloc_driver(lines, flags) \ __tty_alloc_driver(lines, THIS_MODULE, flags)/* * DEPRECATED Do not use this in new code, use tty_alloc_driver instead. * 不赞成使用这个新代码,通常使用tty_alloc_driver来代替。其实他们实际意义是一样的 * (And chang... 阅读全文

posted @ 2013-02-13 15:18 plinx 阅读(1745) 评论(0) 推荐(0)

vim去行号
摘要:底行模式:%s/^\s*[0-9]*\s*//g恢复缩进,在普通模式下gg//至段首v//visual模式G//段尾=//恢复缩进 阅读全文

posted @ 2013-02-13 14:07 plinx 阅读(258) 评论(0) 推荐(0)

tty_operations
摘要:struct tty_operations { struct tty_struct * (*lookup)(struct tty_driver *driver, struct inode *inode, int idx);//返回对应的tty设备, 若为NULL则返回ERR_PTR, 在tty_mutex函数中调用//该项可选,默认为使用ttys array int (*install)(struct tty_driver *driver, struct tty_struct *tty);//install一个tty设... 阅读全文

posted @ 2013-02-12 22:49 plinx 阅读(2706) 评论(0) 推荐(0)

objdump and readelf
摘要:编译器 arm-linux-gccarm-linux-gcc hello.c -o hello 反汇编器 arm-linux-objdumparm-linux-objdump -D -S hello//-D, --disassemble-all Display assembler contents of all sections//-S, --source Intermix source code with disassembly ELF文件查看工具 arm-linux-readelfarm-linux-readelf -a hello //check the data and ... 阅读全文

posted @ 2013-02-07 14:01 plinx 阅读(359) 评论(1) 推荐(0)

导航