摘要: char*tmp;char*pathname;path_get(&file->f_path);tmp=(char*)__get_free_page(GFP_TEMPORARY);if(!tmp){return-ENOMEM;}pathname=d_path(&file->f_path,tmp,PAGE_SIZE);path_put(&file->f_path);if(IS_ERR(pathname)){free_page((unsignedlong)tmp);returnPTR_ERR(pathname);}printk(KERN_WARNING&qu 阅读全文
posted @ 2012-09-17 13:12 super119 阅读(576) 评论(0) 推荐(0) 编辑