摘要:/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...
阅读全文
摘要:底行模式:%s/^\s*[0-9]*\s*//g恢复缩进,在普通模式下gg//至段首v//visual模式G//段尾=//恢复缩进
阅读全文
摘要: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设...
阅读全文
摘要:编译器 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 ...
阅读全文