Home
last modified time | relevance | path

Searched refs:file (Results 1 – 25 of 118) sorted by relevance

12345

/net/batman-adv/
Ddebugfs.c44 void batadv_debugfs_deprecated(struct file *file, const char *alt) in batadv_debugfs_deprecated() argument
46 struct dentry *dentry = file_dentry(file); in batadv_debugfs_deprecated()
53 static int batadv_algorithms_open(struct inode *inode, struct file *file) in batadv_algorithms_open() argument
55 batadv_debugfs_deprecated(file, in batadv_algorithms_open()
57 return single_open(file, batadv_algo_seq_print_text, NULL); in batadv_algorithms_open()
60 static int neighbors_open(struct inode *inode, struct file *file) in neighbors_open() argument
64 batadv_debugfs_deprecated(file, in neighbors_open()
66 return single_open(file, batadv_hardif_neigh_seq_print_text, net_dev); in neighbors_open()
69 static int batadv_originators_open(struct inode *inode, struct file *file) in batadv_originators_open() argument
73 batadv_debugfs_deprecated(file, in batadv_originators_open()
[all …]
Dlog.c85 static int batadv_log_open(struct inode *inode, struct file *file) in batadv_log_open() argument
90 batadv_debugfs_deprecated(file, in batadv_log_open()
93 stream_open(inode, file); in batadv_log_open()
94 file->private_data = inode->i_private; in batadv_log_open()
98 static int batadv_log_release(struct inode *inode, struct file *file) in batadv_log_release() argument
109 static ssize_t batadv_log_read(struct file *file, char __user *buf, in batadv_log_read() argument
112 struct batadv_priv *bat_priv = file->private_data; in batadv_log_read()
118 if ((file->f_flags & O_NONBLOCK) && batadv_log_empty(debug_log)) in batadv_log_read()
164 static __poll_t batadv_log_poll(struct file *file, poll_table *wait) in batadv_log_poll() argument
166 struct batadv_priv *bat_priv = file->private_data; in batadv_log_poll()
[all …]
Dicmp_socket.c58 static int batadv_socket_open(struct inode *inode, struct file *file) in batadv_socket_open() argument
66 batadv_debugfs_deprecated(file, ""); in batadv_socket_open()
68 stream_open(inode, file); in batadv_socket_open()
97 file->private_data = socket_client; in batadv_socket_open()
102 static int batadv_socket_release(struct inode *inode, struct file *file) in batadv_socket_release() argument
104 struct batadv_socket_client *client = file->private_data; in batadv_socket_release()
124 static ssize_t batadv_socket_read(struct file *file, char __user *buf, in batadv_socket_read() argument
127 struct batadv_socket_client *socket_client = file->private_data; in batadv_socket_read()
132 if ((file->f_flags & O_NONBLOCK) && socket_client->queue_len == 0) in batadv_socket_read()
167 static ssize_t batadv_socket_write(struct file *file, const char __user *buff, in batadv_socket_write() argument
[all …]
Ddebugfs.h19 void batadv_debugfs_deprecated(struct file *file, const char *alt);
31 static inline void batadv_debugfs_deprecated(struct file *file, const char *alt) in batadv_debugfs_deprecated() argument
/net/mac80211/
Ddebugfs.c35 static ssize_t name## _read(struct file *file, char __user *userbuf, \
38 struct ieee80211_local *local = file->private_data; \
73 static ssize_t aqm_read(struct file *file, in aqm_read() argument
78 struct ieee80211_local *local = file->private_data; in aqm_read()
114 static ssize_t aqm_write(struct file *file, in aqm_write() argument
119 struct ieee80211_local *local = file->private_data; in aqm_write()
151 static ssize_t force_tx_status_read(struct file *file, in force_tx_status_read() argument
156 struct ieee80211_local *local = file->private_data; in force_tx_status_read()
166 static ssize_t force_tx_status_write(struct file *file, in force_tx_status_write() argument
171 struct ieee80211_local *local = file->private_data; in force_tx_status_write()
[all …]
Ddebugfs_key.c17 static ssize_t key_##name##_read(struct file *file, \
21 struct ieee80211_key *key = file->private_data; \
69 static ssize_t key_algorithm_read(struct file *file, in key_algorithm_read() argument
74 struct ieee80211_key *key = file->private_data; in key_algorithm_read()
83 static ssize_t key_tx_spec_write(struct file *file, const char __user *userbuf, in key_tx_spec_write() argument
86 struct ieee80211_key *key = file->private_data; in key_tx_spec_write()
118 static ssize_t key_tx_spec_read(struct file *file, char __user *userbuf, in key_tx_spec_read() argument
124 struct ieee80211_key *key = file->private_data; in key_tx_spec_read()
157 static ssize_t key_rx_spec_read(struct file *file, char __user *userbuf, in key_rx_spec_read() argument
160 struct ieee80211_key *key = file->private_data; in key_rx_spec_read()
[all …]
Drc80211_minstrel_ht_debugfs.c16 minstrel_stats_read(struct file *file, char __user *buf, size_t len, loff_t *ppos) in minstrel_stats_read() argument
20 ms = file->private_data; in minstrel_stats_read()
25 minstrel_stats_release(struct inode *inode, struct file *file) in minstrel_stats_release() argument
27 kfree(file->private_data); in minstrel_stats_release()
121 minstrel_ht_stats_open(struct inode *inode, struct file *file) in minstrel_ht_stats_open() argument
132 ret = minstrel_stats_open(inode, file); in minstrel_ht_stats_open()
141 file->private_data = ms; in minstrel_ht_stats_open()
167 return nonseekable_open(inode, file); in minstrel_ht_stats_open()
271 minstrel_ht_stats_csv_open(struct inode *inode, struct file *file) in minstrel_ht_stats_csv_open() argument
282 ret = minstrel_stats_csv_open(inode, file); in minstrel_ht_stats_csv_open()
[all …]
Ddebugfs_sta.c22 static ssize_t sta_ ##name## _read(struct file *file, \
26 struct sta_info *sta = file->private_data; \
84 static ssize_t sta_flags_read(struct file *file, char __user *userbuf, in sta_flags_read() argument
89 struct sta_info *sta = file->private_data; in sta_flags_read()
104 static ssize_t sta_num_ps_buf_frames_read(struct file *file, in sta_num_ps_buf_frames_read() argument
108 struct sta_info *sta = file->private_data; in sta_num_ps_buf_frames_read()
120 static ssize_t sta_last_seq_ctrl_read(struct file *file, char __user *userbuf, in sta_last_seq_ctrl_read() argument
125 struct sta_info *sta = file->private_data; in sta_last_seq_ctrl_read()
136 static ssize_t sta_aqm_read(struct file *file, char __user *userbuf, in sta_aqm_read() argument
139 struct sta_info *sta = file->private_data; in sta_aqm_read()
[all …]
Drc80211_minstrel_debugfs.c58 minstrel_stats_open(struct inode *inode, struct file *file) in minstrel_stats_open() argument
69 file->private_data = ms; in minstrel_stats_open()
120 minstrel_stats_csv_open(struct inode *inode, struct file *file) in minstrel_stats_csv_open() argument
131 file->private_data = ms; in minstrel_stats_csv_open()
Drc80211_minstrel.h133 int minstrel_stats_open(struct inode *inode, struct file *file);
134 int minstrel_stats_csv_open(struct inode *inode, struct file *file);
/net/6lowpan/
Ddebugfs.c97 static int lowpan_ctx_pfx_show(struct seq_file *file, void *offset) in lowpan_ctx_pfx_show() argument
99 struct lowpan_iphc_ctx *ctx = file->private; in lowpan_ctx_pfx_show()
104 seq_printf(file, "%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n", in lowpan_ctx_pfx_show()
118 static int lowpan_ctx_pfx_open(struct inode *inode, struct file *file) in lowpan_ctx_pfx_open() argument
120 return single_open(file, lowpan_ctx_pfx_show, inode->i_private); in lowpan_ctx_pfx_open()
123 static ssize_t lowpan_ctx_pfx_write(struct file *fp, in lowpan_ctx_pfx_write()
128 struct seq_file *file = fp->private_data; in lowpan_ctx_pfx_write() local
129 struct lowpan_iphc_ctx *ctx = file->private; in lowpan_ctx_pfx_write()
192 static int lowpan_context_show(struct seq_file *file, void *offset) in lowpan_context_show() argument
194 struct lowpan_iphc_ctx_table *t = file->private; in lowpan_context_show()
[all …]
/net/
Dsocket.c114 static int sock_mmap(struct file *file, struct vm_area_struct *vma);
116 static int sock_close(struct inode *inode, struct file *file);
117 static __poll_t sock_poll(struct file *file,
119 static long sock_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
121 static long compat_sock_ioctl(struct file *file,
124 static int sock_fasync(int fd, struct file *filp, int on);
125 static ssize_t sock_sendpage(struct file *file, struct page *page,
127 static ssize_t sock_splice_read(struct file *file, loff_t *ppos,
250 ei->socket.file = NULL; in sock_alloc_inode()
391 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname) in sock_alloc_file()
[all …]
/net/sunrpc/
Dcache.c796 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, in cache_read()
934 static ssize_t cache_write(struct file *filp, const char __user *buf, in cache_write()
954 static __poll_t cache_poll(struct file *filp, poll_table *wait, in cache_poll()
981 static int cache_ioctl(struct inode *ino, struct file *filp, in cache_ioctl()
1010 static int cache_open(struct inode *inode, struct file *filp, in cache_open()
1037 static int cache_release(struct inode *inode, struct file *filp, in cache_release()
1385 void *cache_seq_next_rcu(struct seq_file *file, void *p, loff_t *pos) in cache_seq_next_rcu() argument
1387 return cache_seq_next(file, p, pos); in cache_seq_next_rcu()
1430 static int content_open(struct inode *inode, struct file *file, in content_open() argument
1439 err = seq_open(file, &cache_content_op); in content_open()
[all …]
Ddebugfs.c86 static int tasks_open(struct inode *inode, struct file *filp) in tasks_open()
103 tasks_release(struct inode *inode, struct file *filp) in tasks_release()
186 xprt_info_open(struct inode *inode, struct file *filp) in xprt_info_open()
203 xprt_info_release(struct inode *inode, struct file *filp) in xprt_info_release()
250 fault_open(struct inode *inode, struct file *filp) in fault_open()
259 fault_release(struct inode *inode, struct file *filp) in fault_release()
266 fault_disconnect_read(struct file *filp, char __user *user_buf, in fault_disconnect_read()
277 fault_disconnect_write(struct file *filp, const char __user *user_buf, in fault_disconnect_write()
Drpc_pipe.c104 ssize_t rpc_pipe_generic_upcall(struct file *filp, struct rpc_pipe_msg *msg, in rpc_pipe_generic_upcall()
213 rpc_pipe_open(struct inode *inode, struct file *filp) in rpc_pipe_open()
240 rpc_pipe_release(struct inode *inode, struct file *filp) in rpc_pipe_release()
281 rpc_pipe_read(struct file *filp, char __user *buf, size_t len, loff_t *offset) in rpc_pipe_read()
325 rpc_pipe_write(struct file *filp, const char __user *buf, size_t len, loff_t *offset) in rpc_pipe_write()
339 rpc_pipe_poll(struct file *filp, struct poll_table_struct *wait) in rpc_pipe_poll()
357 rpc_pipe_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in rpc_pipe_ioctl()
415 rpc_info_open(struct inode *inode, struct file *file) in rpc_info_open() argument
418 int ret = single_open(file, rpc_show_info, NULL); in rpc_info_open()
421 struct seq_file *m = file->private_data; in rpc_info_open()
[all …]
/net/atm/
Dmpoa_proc.c50 static int proc_mpc_open(struct inode *inode, struct file *file);
51 static ssize_t proc_mpc_write(struct file *file, const char __user *buff,
204 static int proc_mpc_open(struct inode *inode, struct file *file) in proc_mpc_open() argument
206 return seq_open(file, &mpc_op); in proc_mpc_open()
209 static ssize_t proc_mpc_write(struct file *file, const char __user *buff, in proc_mpc_write() argument
/net/wireless/
Ddebugfs.c14 static ssize_t name## _read(struct file *file, char __user *userbuf, \
17 struct wiphy *wiphy = file->private_data; \
62 static ssize_t ht40allow_map_read(struct file *file, in ht40allow_map_read() argument
66 struct wiphy *wiphy = file->private_data; in ht40allow_map_read()
/net/bluetooth/
Dhci_debugfs.c32 static ssize_t __name ## _read(struct file *file, \
36 struct hci_dev *hdev = file->private_data; \
45 static ssize_t __name ## _write(struct file *file, \
49 struct hci_dev *hdev = file->private_data; \
255 static ssize_t use_debug_keys_read(struct file *file, char __user *user_buf, in use_debug_keys_read() argument
258 struct hci_dev *hdev = file->private_data; in use_debug_keys_read()
273 static ssize_t sc_only_mode_read(struct file *file, char __user *user_buf, in sc_only_mode_read() argument
276 struct hci_dev *hdev = file->private_data; in sc_only_mode_read()
407 static ssize_t ssp_debug_mode_read(struct file *file, char __user *user_buf, in ssp_debug_mode_read() argument
410 struct hci_dev *hdev = file->private_data; in ssp_debug_mode_read()
[all …]
/net/rfkill/
Dcore.c1103 static int rfkill_fop_open(struct inode *inode, struct file *file) in rfkill_fop_open() argument
1135 file->private_data = data; in rfkill_fop_open()
1137 return stream_open(inode, file); in rfkill_fop_open()
1149 static __poll_t rfkill_fop_poll(struct file *file, poll_table *wait) in rfkill_fop_poll() argument
1151 struct rfkill_data *data = file->private_data; in rfkill_fop_poll()
1154 poll_wait(file, &data->read_wait, wait); in rfkill_fop_poll()
1164 static ssize_t rfkill_fop_read(struct file *file, char __user *buf, in rfkill_fop_read() argument
1167 struct rfkill_data *data = file->private_data; in rfkill_fop_read()
1175 if (file->f_flags & O_NONBLOCK) { in rfkill_fop_read()
1206 static ssize_t rfkill_fop_write(struct file *file, const char __user *buf, in rfkill_fop_write() argument
[all …]
/net/nfc/nci/
Duart.c272 static int nci_uart_tty_ioctl(struct tty_struct *tty, struct file *file, in nci_uart_tty_ioctl() argument
286 err = n_tty_ioctl_helper(tty, file, cmd, arg); in nci_uart_tty_ioctl()
294 static ssize_t nci_uart_tty_read(struct tty_struct *tty, struct file *file, in nci_uart_tty_read() argument
300 static ssize_t nci_uart_tty_write(struct tty_struct *tty, struct file *file, in nci_uart_tty_write() argument
307 struct file *filp, poll_table *wait) in nci_uart_tty_poll()
/net/l2tp/
Dl2tp_debugfs.c267 static int l2tp_dfs_seq_open(struct inode *inode, struct file *file) in l2tp_dfs_seq_open() argument
286 rc = seq_open(file, &l2tp_dfs_seq_ops); in l2tp_dfs_seq_open()
290 seq = file->private_data; in l2tp_dfs_seq_open()
303 static int l2tp_dfs_seq_release(struct inode *inode, struct file *file) in l2tp_dfs_seq_release() argument
308 seq = file->private_data; in l2tp_dfs_seq_release()
313 seq_release(inode, file); in l2tp_dfs_seq_release()
/net/qrtr/
Dtun.c31 static int qrtr_tun_open(struct inode *inode, struct file *filp) in qrtr_tun_open()
51 struct file *filp = iocb->ki_filp; in qrtr_tun_read_iter()
77 struct file *filp = iocb->ki_filp; in qrtr_tun_write_iter()
98 static __poll_t qrtr_tun_poll(struct file *filp, poll_table *wait) in qrtr_tun_poll()
111 static int qrtr_tun_release(struct inode *inode, struct file *filp) in qrtr_tun_release()
/net/ipv4/netfilter/
Dipt_CLUSTERIP.c745 static int clusterip_proc_open(struct inode *inode, struct file *file) in clusterip_proc_open() argument
747 int ret = seq_open(file, &clusterip_seq_ops); in clusterip_proc_open()
750 struct seq_file *sf = file->private_data; in clusterip_proc_open()
761 static int clusterip_proc_release(struct inode *inode, struct file *file) in clusterip_proc_release() argument
766 ret = seq_release(inode, file); in clusterip_proc_release()
774 static ssize_t clusterip_proc_write(struct file *file, const char __user *input, in clusterip_proc_write() argument
777 struct clusterip_config *c = PDE_DATA(file_inode(file)); in clusterip_proc_write()
/net/netfilter/
Dxt_quota2.c141 static ssize_t quota_proc_read(struct file *file, char __user *buf, in quota_proc_read() argument
144 struct xt_quota_counter *e = PDE_DATA(file_inode(file)); in quota_proc_read()
154 static ssize_t quota_proc_write(struct file *file, const char __user *input, in quota_proc_write() argument
157 struct xt_quota_counter *e = PDE_DATA(file_inode(file)); in quota_proc_write()
/net/core/
Dscm.c69 struct file **fpp; in scm_fp_copy()
102 struct file *file; in scm_fp_copy() local
104 if (fd < 0 || !(file = fget_raw(fd))) in scm_fp_copy()
106 *fpp++ = file; in scm_fp_copy()
285 struct file **fp = scm->fp->fp; in scm_detach_fds()

12345