提交 659b385a 编写于 作者: J Jiankang Chen 提交者: Xie XiuQi

svm: add open function for this svm drv;

ascend inclusion
category: feature
bugzilla: 16554
CVE: NA

--------

add open function to this svm drv, and this open
function is a empty function;
Signed-off-by: NJiankang Chen <chenjiankang1@huawei.com>
Signed-off-by: NLijun Fang <fanglijun3@huawei.com>
Reviewed-by: NLi Zefan <lizefan@huawei.com>
Reviewed-by: NKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 8f29578b
......@@ -81,6 +81,12 @@ struct svm_context {
struct list_head process_head;
atomic_t ref;
};
static int svm_open(struct inode *inode, struct file *file)
{
return 0;
}
/*svm ioctl will include some case for HI1980 and HI1910*/
static long svm_ioctl(struct file *file, unsigned int cmd,
unsigned long arg)
......@@ -91,6 +97,7 @@ static long svm_ioctl(struct file *file, unsigned int cmd,
static const struct file_operations svm_fops = {
.owner = THIS_MODULE,
.open = svm_open,
.unlocked_ioctl = svm_ioctl,
};
/*svm device probe this is init the svm device*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册