摘要: 1staticintandroid_readwrite_file(constA_CHAR*filename,A_CHAR*rbuf,constA_CHAR*wbuf,size_tlength)2{3intret=0;4structfile*filp=(structfile*)-ENOENT;5mm_segment_toldfs;6oldfs=get_fs();7set_fs(KERNEL_DS);8do{9intmode=(wbuf)?O_RDWR:O_RDONLY;10filp=filp_open(filename,mode,S_IRUSR);11if(IS_ERR(filp)||!filp 阅读全文
posted @ 2012-08-15 10:17 camera&tunning 阅读(622) 评论(0) 推荐(0) 编辑