Rain_ning 发表于 2010-12-20 15:03:15

关于Linux驱动程序中的close和release函数的疑问

请问Key中断驱动程序里的
static int EmbedSky_buttons_close(struct inode *inode, struct file *file)函数为什么不用release而是close
在file_operation结构体中并不包含close函数啊
上层应用程序调用close的时候 会打开驱动中的close函数么?close系统调用对应的驱动接口函数应该是release啊

trulliyang 发表于 2010-12-31 18:12:18

函数名字无所谓啊,具体看file_operatiion{}里的是什么

trulliyang 发表于 2010-12-31 18:12:46

还是已经typedef 过了啊

9v9v 发表于 2011-1-2 21:07:01

http://cache.amobbs.com/bbs_upload782111/files_35/ourdev_608681LMK9YS.jpg
这里已经定义过了 (原文件名:O_J6A
页: [1]
查看完整版本: 关于Linux驱动程序中的close和release函数的疑问