Lines Matching defs:file
128 static ssize_t pstore_file_read(struct file *file, char __user *userbuf,
131 struct seq_file *sf = file->private_data;
135 return seq_read(file, userbuf, count, ppos);
140 static int pstore_file_open(struct inode *inode, struct file *file)
150 err = seq_open(file, sops);
154 sf = file->private_data;
160 static loff_t pstore_file_llseek(struct file *file, loff_t off, int whence)
162 struct seq_file *sf = file->private_data;
165 return seq_lseek(file, off, whence);
166 return default_llseek(file, off, whence);
177 * When a file is unlinked from our file system we call the
189 /* Make sure we can't race while removing this file. */
337 * Make a regular file in the root directory of our file system.