Lines Matching refs:file
31 struct file *proc_file;
111 static int file_removed(struct dentry *dentry, const char *file) in file_removed() argument
117 if (file != NULL) in file_removed()
118 extra += strlen(file) + 1; in file_removed()
126 if (file != NULL) { in file_removed()
128 strcat(host_file, file); in file_removed()
178 static ssize_t read_proc(struct file *file, char __user *buf, ssize_t count, in read_proc() argument
181 ssize_t (*read)(struct file *, char __user *, size_t, loff_t *); in read_proc()
184 read = file_inode(file)->i_fop->read; in read_proc()
189 n = (*read)(file, buf, count, &file->f_pos); in read_proc()
195 *ppos = file->f_pos; in read_proc()
236 static ssize_t hppfs_read(struct file *file, char __user *buf, size_t count, in hppfs_read() argument
239 struct hppfs_private *hppfs = file->private_data; in hppfs_read()
285 static ssize_t hppfs_write(struct file *file, const char __user *buf, in hppfs_write() argument
288 struct hppfs_private *data = file->private_data; in hppfs_write()
289 struct file *proc_file = data->proc_file; in hppfs_write()
290 ssize_t (*write)(struct file *, const char __user *, size_t, loff_t *); in hppfs_write()
330 struct file *proc_file, in hppfs_get_data()
331 struct file *hppfs_file, in hppfs_get_data()
420 static int hppfs_open(struct inode *inode, struct file *file) in hppfs_open() argument
422 const struct cred *cred = file->f_cred; in hppfs_open()
433 host_file = dentry_name(file->f_path.dentry, strlen("/rw")); in hppfs_open()
440 data->proc_file = dentry_open(&path, file_mode(file->f_mode), cred); in hppfs_open()
460 file, &data->len); in hppfs_open()
469 file->private_data = data; in hppfs_open()
481 static int hppfs_dir_open(struct inode *inode, struct file *file) in hppfs_dir_open() argument
483 const struct cred *cred = file->f_cred; in hppfs_dir_open()
495 data->proc_file = dentry_open(&path, file_mode(file->f_mode), cred); in hppfs_dir_open()
500 file->private_data = data; in hppfs_dir_open()
509 static loff_t hppfs_llseek(struct file *file, loff_t off, int where) in hppfs_llseek() argument
511 struct hppfs_private *data = file->private_data; in hppfs_llseek()
512 struct file *proc_file = data->proc_file; in hppfs_llseek()
513 loff_t (*llseek)(struct file *, loff_t, int); in hppfs_llseek()
523 return default_llseek(file, off, where); in hppfs_llseek()
526 static int hppfs_release(struct inode *inode, struct file *file) in hppfs_release() argument
528 struct hppfs_private *data = file->private_data; in hppfs_release()
529 struct file *proc_file = data->proc_file; in hppfs_release()
564 static int hppfs_readdir(struct file *file, struct dir_context *ctx) in hppfs_readdir() argument
566 struct hppfs_private *data = file->private_data; in hppfs_readdir()
567 struct file *proc_file = data->proc_file; in hppfs_readdir()
571 .dentry = file->f_path.dentry in hppfs_readdir()