- 博客(6)
- 资源 (6)
- 收藏
- 关注
原创 shell脚本
#!/bin/sh#等待用户的输入,输入值赋值给filenameread filename#显示日期,注意 " `` "echo "today is `date`"#---------------->算术运算<---------------------#算法运算,注意空格,屏幕是将显示9expr 4 + 5#算述展开,read xxxxr
2012-04-29 10:30:32 518
原创 系统调用
#define SYSCALL_DEFINE0(name) asmlinkage long sys_##name(void)#define SYSCALL_DEFINE1(name, ...) SYSCALL_DEFINEx(1, _##name, __VA_ARGS__)#define SYSCALL_DEFINE2(name, ...) SYSCALL_DEFINEx(2, _#
2012-04-29 10:27:38 2014
原创 串口驱动程序分析
//串口驱动程序分析(1),串口写数据当用户层调用write()函数,就对应调用/driver/char/tty_io.c里面的tty_write() tty_write() ---> do_tty_write() ---> //driver/char/n_tty.c n_tty_write() ---> add_wait_queue(&tty-
2012-04-29 10:26:42 7282 1
原创 linux起动分析
u-boot-1.1.6u-boot配制分析: //Makefile make xxx_config ----> /*sbc2410x_config: unconfig @$(MKCONFIG) $(@:_config=) arm arm920t sbc2410x NULL s3c24x0*/ @$(MKCONFIG) --->执行当前目录下的mkconfig //m
2012-04-29 10:24:07 1762
转载 linux attributes
GNU C的一大特色(却不被初学者所知)就是__attribute__机制。__attribute__可以设置函数属性(Function Attribute)、变量属性(Variable Attribute)和类型属性(Type Attribute)。__attribute__书写特征是:__attribute__前后都有两个下划线,并切后面会紧跟一对原括弧,括弧里面是相应的_
2012-04-14 14:27:22 753 1
原创 s3c2410调试串口改成普通串口
uboot源代码include/configs/smdk2410.h/* * select serial console configuration */#define CONFIG_S3C24X0_SERIAL#define CONFIG_SERIAL1 1 /* we use SERIAL 1 on SMDK2410 */ drivers/serial/ser
2012-04-11 14:07:38 1480
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人