Lines Matching defs:file
4 * This file is provided under a dual BSD/GPLv2 license. When using or
5 * redistributing this file, you may do so under either license.
125 static int fault_opcodes_open(struct inode *inode, struct file *file)
127 file->private_data = inode->i_private;
128 return nonseekable_open(inode, file);
131 static ssize_t fault_opcodes_write(struct file *file, const char __user *buf,
138 struct fault *fault = file->private_data;
149 ret = debugfs_file_get(file->f_path.dentry);
199 debugfs_file_put(file->f_path.dentry);
205 static ssize_t fault_opcodes_read(struct file *file, char __user *buf,
212 struct fault *fault = file->private_data;
218 ret = debugfs_file_get(file->f_path.dentry);
234 debugfs_file_put(file->f_path.dentry);