Lines Matching refs:file

100 static int batadv_log_open(struct inode *inode, struct file *file)
105 nonseekable_open(inode, file);
106 file->private_data = inode->i_private;
110 static int batadv_log_release(struct inode *inode, struct file *file)
121 static ssize_t batadv_log_read(struct file *file, char __user *buf,
124 struct batadv_priv *bat_priv = file->private_data;
130 if ((file->f_flags & O_NONBLOCK) && batadv_log_empty(debug_log))
176 static unsigned int batadv_log_poll(struct file *file, poll_table *wait)
178 struct batadv_priv *bat_priv = file->private_data;
181 poll_wait(file, &debug_log->queue_wait, wait);
240 static int batadv_algorithms_open(struct inode *inode, struct file *file)
242 return single_open(file, batadv_algo_seq_print_text, NULL);
245 static int batadv_originators_open(struct inode *inode, struct file *file)
249 return single_open(file, batadv_orig_seq_print_text, net_dev);
255 * @inode: inode pointer to debugfs file
256 * @file: pointer to the seq_file
259 struct file *file)
263 return single_open(file, batadv_orig_hardif_seq_print_text, net_dev);
266 static int batadv_gateways_open(struct inode *inode, struct file *file)
270 return single_open(file, batadv_gw_client_seq_print_text, net_dev);
273 static int batadv_transtable_global_open(struct inode *inode, struct file *file)
277 return single_open(file, batadv_tt_global_seq_print_text, net_dev);
281 static int batadv_bla_claim_table_open(struct inode *inode, struct file *file)
285 return single_open(file, batadv_bla_claim_table_seq_print_text,
290 struct file *file)
294 return single_open(file, batadv_bla_backbone_table_seq_print_text,
302 * batadv_dat_cache_open - Prepare file handler for reads from dat_chache
304 * @file: file handle to be initialized
306 static int batadv_dat_cache_open(struct inode *inode, struct file *file)
310 return single_open(file, batadv_dat_cache_seq_print_text, net_dev);
314 static int batadv_transtable_local_open(struct inode *inode, struct file *file)
318 return single_open(file, batadv_tt_local_seq_print_text, net_dev);
327 static int batadv_nc_nodes_open(struct inode *inode, struct file *file)
331 return single_open(file, batadv_nc_nodes_seq_print_text, net_dev);
419 struct dentry *file;
429 file = debugfs_create_file(((*bat_debug)->attr).name,
433 if (!file) {
434 pr_err("Can't add general debugfs file: %s\n",
460 struct dentry *file;
471 file = debugfs_create_file(((*bat_debug)->attr).name,
476 if (!file)
509 struct dentry *file;
525 file = debugfs_create_file(((*bat_debug)->attr).name,
529 if (!file) {
530 batadv_err(dev, "Can't add debugfs file: %s/%s\n",