linux driver
古戎烽烟
脑袋被猪拱了
展开
-
linux iic driver1
在iic-s3c2410.c文件中首先分析platform平台下的driver原创 2014-11-10 19:56:28 · 972 阅读 · 0 评论 -
linux可变参数 va_arg
在linux驱动中 kobject_add(struct kobject *kobj, struct kobject *parent,const char *fmt, ...)此时函数传入的可变参数;怎么处理? 依据参数出入时是压栈操作,具体压栈顺序根据编译器规则来确定。 { va_list args; int retval; if (!kobj) return -E转载 2015-11-23 10:02:08 · 798 阅读 · 0 评论 -
first bit
unsigned long find_next_zero_bit(const unsigned long *addr, unsigned long size, unsigned long offset) { const unsigned long *p = addr + BITOP_WORD(offset); // offset位于p指向的long地址32位空间转载 2015-11-23 14:14:30 · 396 阅读 · 0 评论 -
linux i2c driver 2
分析i2c-Dev的注册,此设备是个通用的设备,原创 2014-11-10 20:57:32 · 658 阅读 · 0 评论 -
linux camera ---1
linux 摄像头驱动 : /** * struct fimc_dev - abstraction for FIMC entity * @slock: the spinlock protecting this data structure * @lock: the mutex protecting this data structure * @pdev: pointer to the F原创 2016-05-10 12:50:09 · 1013 阅读 · 0 评论