Lines Matching refs:file
85 static int batadv_log_open(struct inode *inode, struct file *file)
90 batadv_debugfs_deprecated(file,
93 stream_open(inode, file);
94 file->private_data = inode->i_private;
98 static int batadv_log_release(struct inode *inode, struct file *file)
109 static ssize_t batadv_log_read(struct file *file, char __user *buf,
112 struct batadv_priv *bat_priv = file->private_data;
118 if ((file->f_flags & O_NONBLOCK) && batadv_log_empty(debug_log))
164 static __poll_t batadv_log_poll(struct file *file, poll_table *wait)
166 struct batadv_priv *bat_priv = file->private_data;
169 poll_wait(file, &debug_log->queue_wait, wait);