2018年7月11日 星期三

[工作] 從file_operation的read/write函式, 從struct file裡面讀到檔名

ex. ssize_t led_write(struct file *filp, const char __user *buff,
                        size_t size, loff_t *ppos)


檔名: filp->f_path.dentry->d_iname

沒有留言:

張貼留言