赞
踩
参考:
http://stackoverflow.com/questions/17885676/in-linux-how-can-i-get-the-filename-from-the-struct-file-structure-while-ste
获取文件名:
struct file *filp with filp->f_path.dentry->d_iname.
dentry_path_raw(filp->f_path.dentry,buf,buflen)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。