Home
last modified time | relevance | path

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

1234567

/net/batman-adv/
Ddebugfs.c50 static int batadv_algorithms_open(struct inode *inode, struct file *file) in batadv_algorithms_open() argument
52 return single_open(file, batadv_algo_seq_print_text, NULL); in batadv_algorithms_open()
55 static int neighbors_open(struct inode *inode, struct file *file) in neighbors_open() argument
59 return single_open(file, batadv_hardif_neigh_seq_print_text, net_dev); in neighbors_open()
62 static int batadv_originators_open(struct inode *inode, struct file *file) in batadv_originators_open() argument
66 return single_open(file, batadv_orig_seq_print_text, net_dev); in batadv_originators_open()
78 struct file *file) in batadv_originators_hardif_open() argument
82 return single_open(file, batadv_orig_hardif_seq_print_text, net_dev); in batadv_originators_hardif_open()
85 static int batadv_gateways_open(struct inode *inode, struct file *file) in batadv_gateways_open() argument
89 return single_open(file, batadv_gw_client_seq_print_text, net_dev); in batadv_gateways_open()
[all …]
Dlog.c103 static int batadv_log_open(struct inode *inode, struct file *file) in batadv_log_open() argument
108 nonseekable_open(inode, file); in batadv_log_open()
109 file->private_data = inode->i_private; in batadv_log_open()
113 static int batadv_log_release(struct inode *inode, struct file *file) in batadv_log_release() argument
124 static ssize_t batadv_log_read(struct file *file, char __user *buf, in batadv_log_read() argument
127 struct batadv_priv *bat_priv = file->private_data; in batadv_log_read()
133 if ((file->f_flags & O_NONBLOCK) && batadv_log_empty(debug_log)) in batadv_log_read()
179 static unsigned int batadv_log_poll(struct file *file, poll_table *wait) in batadv_log_poll() argument
181 struct batadv_priv *bat_priv = file->private_data; in batadv_log_poll()
184 poll_wait(file, &debug_log->queue_wait, wait); in batadv_log_poll()
Dicmp_socket.c63 static int batadv_socket_open(struct inode *inode, struct file *file) in batadv_socket_open() argument
71 nonseekable_open(inode, file); in batadv_socket_open()
100 file->private_data = socket_client; in batadv_socket_open()
105 static int batadv_socket_release(struct inode *inode, struct file *file) in batadv_socket_release() argument
107 struct batadv_socket_client *client = file->private_data; in batadv_socket_release()
127 static ssize_t batadv_socket_read(struct file *file, char __user *buf, in batadv_socket_read() argument
130 struct batadv_socket_client *socket_client = file->private_data; in batadv_socket_read()
135 if ((file->f_flags & O_NONBLOCK) && (socket_client->queue_len == 0)) in batadv_socket_read()
170 static ssize_t batadv_socket_write(struct file *file, const char __user *buff, in batadv_socket_write() argument
173 struct batadv_socket_client *socket_client = file->private_data; in batadv_socket_write()
[all …]
/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; \
91 static int __name ## _open(struct inode *inode, struct file *file) \
93 return single_open(file, __name ## _show, inode->i_private); \
129 static int features_open(struct inode *inode, struct file *file) in features_open() argument
131 return single_open(file, features_show, inode->i_private); in features_open()
153 static int device_id_open(struct inode *inode, struct file *file) in device_id_open() argument
155 return single_open(file, device_id_show, inode->i_private); in device_id_open()
[all …]
/net/mac80211/
Ddebugfs_key.c20 static ssize_t key_##name##_read(struct file *file, \
24 struct ieee80211_key *key = file->private_data; \
72 static ssize_t key_algorithm_read(struct file *file, in key_algorithm_read() argument
77 struct ieee80211_key *key = file->private_data; in key_algorithm_read()
86 static ssize_t key_tx_spec_write(struct file *file, const char __user *userbuf, in key_tx_spec_write() argument
89 struct ieee80211_key *key = file->private_data; in key_tx_spec_write()
121 static ssize_t key_tx_spec_read(struct file *file, char __user *userbuf, in key_tx_spec_read() argument
127 struct ieee80211_key *key = file->private_data; in key_tx_spec_read()
160 static ssize_t key_rx_spec_read(struct file *file, char __user *userbuf, in key_rx_spec_read() argument
163 struct ieee80211_key *key = file->private_data; in key_rx_spec_read()
[all …]
Ddebugfs.c36 static ssize_t name## _read(struct file *file, char __user *userbuf, \
39 struct ieee80211_local *local = file->private_data; \
74 static ssize_t aqm_read(struct file *file, in aqm_read() argument
79 struct ieee80211_local *local = file->private_data; in aqm_read()
115 static ssize_t aqm_write(struct file *file, in aqm_write() argument
120 struct ieee80211_local *local = file->private_data; in aqm_write()
153 static ssize_t reset_write(struct file *file, const char __user *user_buf, in reset_write() argument
156 struct ieee80211_local *local = file->private_data; in reset_write()
217 static ssize_t hwflags_read(struct file *file, char __user *user_buf, in hwflags_read() argument
220 struct ieee80211_local *local = file->private_data; in hwflags_read()
[all …]
Drc80211_minstrel_debugfs.c58 minstrel_stats_read(struct file *file, char __user *buf, size_t len, loff_t *ppos) in minstrel_stats_read() argument
62 ms = file->private_data; in minstrel_stats_read()
67 minstrel_stats_release(struct inode *inode, struct file *file) in minstrel_stats_release() argument
69 kfree(file->private_data); in minstrel_stats_release()
74 minstrel_stats_open(struct inode *inode, struct file *file) in minstrel_stats_open() argument
85 file->private_data = ms; in minstrel_stats_open()
147 minstrel_stats_csv_open(struct inode *inode, struct file *file) in minstrel_stats_csv_open() argument
158 file->private_data = ms; in minstrel_stats_csv_open()
Ddebugfs_sta.c24 static ssize_t sta_ ##name## _read(struct file *file, \
28 struct sta_info *sta = file->private_data; \
86 static ssize_t sta_flags_read(struct file *file, char __user *userbuf, in sta_flags_read() argument
91 struct sta_info *sta = file->private_data; in sta_flags_read()
106 static ssize_t sta_num_ps_buf_frames_read(struct file *file, in sta_num_ps_buf_frames_read() argument
110 struct sta_info *sta = file->private_data; in sta_num_ps_buf_frames_read()
122 static ssize_t sta_last_seq_ctrl_read(struct file *file, char __user *userbuf, in sta_last_seq_ctrl_read() argument
127 struct sta_info *sta = file->private_data; in sta_last_seq_ctrl_read()
138 static ssize_t sta_aqm_read(struct file *file, char __user *userbuf, in sta_aqm_read() argument
141 struct sta_info *sta = file->private_data; in sta_aqm_read()
[all …]
Drc80211_minstrel.h166 int minstrel_stats_open(struct inode *inode, struct file *file);
167 int minstrel_stats_csv_open(struct inode *inode, struct file *file);
168 ssize_t minstrel_stats_read(struct file *file, char __user *buf, size_t len, loff_t *ppos);
169 int minstrel_stats_release(struct inode *inode, struct file *file);
Drc80211_minstrel_ht_debugfs.c108 minstrel_ht_stats_open(struct inode *inode, struct file *file) in minstrel_ht_stats_open() argument
119 ret = minstrel_stats_open(inode, file); in minstrel_ht_stats_open()
128 file->private_data = ms; in minstrel_ht_stats_open()
153 return nonseekable_open(inode, file); in minstrel_ht_stats_open()
256 minstrel_ht_stats_csv_open(struct inode *inode, struct file *file) in minstrel_ht_stats_csv_open() argument
267 ret = minstrel_stats_csv_open(inode, file); in minstrel_ht_stats_csv_open()
277 file->private_data = ms; in minstrel_ht_stats_csv_open()
290 return nonseekable_open(inode, file); in minstrel_ht_stats_csv_open()
/net/6lowpan/
Ddebugfs.c103 static int lowpan_ctx_pfx_show(struct seq_file *file, void *offset) in lowpan_ctx_pfx_show() argument
105 struct lowpan_iphc_ctx *ctx = file->private; in lowpan_ctx_pfx_show()
110 seq_printf(file, "%04x:%04x:%04x:%04x:%04x:%04x:%04x:%04x\n", in lowpan_ctx_pfx_show()
124 static int lowpan_ctx_pfx_open(struct inode *inode, struct file *file) in lowpan_ctx_pfx_open() argument
126 return single_open(file, lowpan_ctx_pfx_show, inode->i_private); in lowpan_ctx_pfx_open()
129 static ssize_t lowpan_ctx_pfx_write(struct file *fp, in lowpan_ctx_pfx_write()
134 struct seq_file *file = fp->private_data; in lowpan_ctx_pfx_write() local
135 struct lowpan_iphc_ctx *ctx = file->private; in lowpan_ctx_pfx_write()
214 static int lowpan_context_show(struct seq_file *file, void *offset) in lowpan_context_show() argument
216 struct lowpan_iphc_ctx_table *t = file->private; in lowpan_context_show()
[all …]
/net/
Dsocket.c119 static int sock_mmap(struct file *file, struct vm_area_struct *vma);
121 static int sock_close(struct inode *inode, struct file *file);
122 static unsigned int sock_poll(struct file *file,
124 static long sock_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
126 static long compat_sock_ioctl(struct file *file,
129 static int sock_fasync(int fd, struct file *filp, int on);
130 static ssize_t sock_sendpage(struct file *file, struct page *page,
132 static ssize_t sock_splice_read(struct file *file, loff_t *ppos,
268 ei->socket.file = NULL; in sock_alloc_inode()
396 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname) in sock_alloc_file()
[all …]
/net/atm/
Dproc.c36 static ssize_t proc_dev_atm_read(struct file *file, char __user *buf,
116 static int __vcc_seq_open(struct inode *inode, struct file *file, in __vcc_seq_open() argument
121 state = __seq_open_private(file, ops, sizeof(*state)); in __vcc_seq_open()
261 static int atm_dev_seq_open(struct inode *inode, struct file *file) in atm_dev_seq_open() argument
263 return seq_open(file, &atm_dev_seq_ops); in atm_dev_seq_open()
296 static int pvc_seq_open(struct inode *inode, struct file *file) in pvc_seq_open() argument
298 return __vcc_seq_open(inode, file, PF_ATMPVC, &pvc_seq_ops); in pvc_seq_open()
330 static int vcc_seq_open(struct inode *inode, struct file *file) in vcc_seq_open() argument
332 return __vcc_seq_open(inode, file, 0, &vcc_seq_ops); in vcc_seq_open()
365 static int svc_seq_open(struct inode *inode, struct file *file) in svc_seq_open() argument
[all …]
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,
202 static int proc_mpc_open(struct inode *inode, struct file *file) in proc_mpc_open() argument
204 return seq_open(file, &mpc_op); in proc_mpc_open()
207 static ssize_t proc_mpc_write(struct file *file, const char __user *buff, in proc_mpc_write() argument
/net/can/
Dproc.c273 static int can_stats_proc_open(struct inode *inode, struct file *file) in can_stats_proc_open() argument
275 return single_open_net(inode, file, can_stats_proc_show); in can_stats_proc_open()
307 static int can_reset_stats_proc_open(struct inode *inode, struct file *file) in can_reset_stats_proc_open() argument
309 return single_open_net(inode, file, can_reset_stats_proc_show); in can_reset_stats_proc_open()
326 static int can_version_proc_open(struct inode *inode, struct file *file) in can_version_proc_open() argument
328 return single_open_net(inode, file, can_version_proc_show); in can_version_proc_open()
354 int idx = (int)(long)PDE_DATA(m->file->f_inode); in can_rcvlist_proc_show()
379 static int can_rcvlist_proc_open(struct inode *inode, struct file *file) in can_rcvlist_proc_open() argument
381 return single_open_net(inode, file, can_rcvlist_proc_show); in can_rcvlist_proc_open()
447 static int can_rcvlist_sff_proc_open(struct inode *inode, struct file *file) in can_rcvlist_sff_proc_open() argument
[all …]
/net/sunrpc/
Dcache.c780 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, in cache_read()
918 static ssize_t cache_write(struct file *filp, const char __user *buf, in cache_write()
938 static unsigned int cache_poll(struct file *filp, poll_table *wait, in cache_poll()
965 static int cache_ioctl(struct inode *ino, struct file *filp, in cache_ioctl()
994 static int cache_open(struct inode *inode, struct file *filp, in cache_open()
1019 static int cache_release(struct inode *inode, struct file *filp, in cache_release()
1398 static int content_open(struct inode *inode, struct file *file, in content_open() argument
1407 err = seq_open(file, &cache_content_op); in content_open()
1413 seq = file->private_data; in content_open()
1418 static int content_release(struct inode *inode, struct file *file, in content_release() argument
[all …]
Ddebugfs.c87 static int tasks_open(struct inode *inode, struct file *filp) in tasks_open()
104 tasks_release(struct inode *inode, struct file *filp) in tasks_release()
189 xprt_info_open(struct inode *inode, struct file *filp) in xprt_info_open()
206 xprt_info_release(struct inode *inode, struct file *filp) in xprt_info_release()
261 fault_open(struct inode *inode, struct file *filp) in fault_open()
270 fault_release(struct inode *inode, struct file *filp) in fault_release()
277 fault_disconnect_read(struct file *filp, char __user *user_buf, in fault_disconnect_read()
288 fault_disconnect_write(struct file *filp, const char __user *user_buf, in fault_disconnect_write()
/net/x25/
Dx25_proc.c174 static int x25_seq_socket_open(struct inode *inode, struct file *file) in x25_seq_socket_open() argument
176 return seq_open(file, &x25_seq_socket_ops); in x25_seq_socket_open()
179 static int x25_seq_route_open(struct inode *inode, struct file *file) in x25_seq_route_open() argument
181 return seq_open(file, &x25_seq_route_ops); in x25_seq_route_open()
184 static int x25_seq_forward_open(struct inode *inode, struct file *file) in x25_seq_forward_open() argument
186 return seq_open(file, &x25_seq_forward_ops); in x25_seq_forward_open()
/net/core/
Dnet-procfs.c178 static int dev_seq_open(struct inode *inode, struct file *file) in dev_seq_open() argument
180 return seq_open_net(inode, file, &dev_seq_ops, in dev_seq_open()
199 static int softnet_seq_open(struct inode *inode, struct file *file) in softnet_seq_open() argument
201 return seq_open(file, &softnet_seq_ops); in softnet_seq_open()
302 static int ptype_seq_open(struct inode *inode, struct file *file) in ptype_seq_open() argument
304 return seq_open_net(inode, file, &ptype_seq_ops, in ptype_seq_open()
383 static int dev_mc_seq_open(struct inode *inode, struct file *file) in dev_mc_seq_open() argument
385 return seq_open_net(inode, file, &dev_mc_seq_ops, in dev_mc_seq_open()
/net/sctp/
Dproc.c92 static int sctp_snmp_seq_open(struct inode *inode, struct file *file) in sctp_snmp_seq_open() argument
94 return single_open_net(inode, file, sctp_snmp_seq_show); in sctp_snmp_seq_open()
250 static int sctp_eps_seq_open(struct inode *inode, struct file *file) in sctp_eps_seq_open() argument
252 return seq_open_net(inode, file, &sctp_eps_ops, in sctp_eps_seq_open()
383 static int sctp_assocs_seq_open(struct inode *inode, struct file *file) in sctp_assocs_seq_open() argument
385 return seq_open_net(inode, file, &sctp_assoc_ops, in sctp_assocs_seq_open()
498 static int sctp_remaddr_seq_open(struct inode *inode, struct file *file) in sctp_remaddr_seq_open() argument
500 return seq_open_net(inode, file, &sctp_remaddr_ops, in sctp_remaddr_seq_open()
/net/wireless/
Ddebugfs.c17 static ssize_t name## _read(struct file *file, char __user *userbuf, \
20 struct wiphy *wiphy = file->private_data; \
65 static ssize_t ht40allow_map_read(struct file *file, in ht40allow_map_read() argument
69 struct wiphy *wiphy = file->private_data; in ht40allow_map_read()
/net/appletalk/
Datalk_proc.c213 static int atalk_seq_interface_open(struct inode *inode, struct file *file) in atalk_seq_interface_open() argument
215 return seq_open(file, &atalk_seq_interface_ops); in atalk_seq_interface_open()
218 static int atalk_seq_route_open(struct inode *inode, struct file *file) in atalk_seq_route_open() argument
220 return seq_open(file, &atalk_seq_route_ops); in atalk_seq_route_open()
223 static int atalk_seq_socket_open(struct inode *inode, struct file *file) in atalk_seq_socket_open() argument
225 return seq_open(file, &atalk_seq_socket_ops); in atalk_seq_socket_open()
/net/ipx/
Dipx_proc.c247 static int ipx_seq_route_open(struct inode *inode, struct file *file) in ipx_seq_route_open() argument
249 return seq_open(file, &ipx_seq_route_ops); in ipx_seq_route_open()
252 static int ipx_seq_interface_open(struct inode *inode, struct file *file) in ipx_seq_interface_open() argument
254 return seq_open(file, &ipx_seq_interface_ops); in ipx_seq_interface_open()
257 static int ipx_seq_socket_open(struct inode *inode, struct file *file) in ipx_seq_socket_open() argument
259 return seq_open(file, &ipx_seq_socket_ops); in ipx_seq_socket_open()
/net/ipv6/
Dproc.c56 static int sockstat6_seq_open(struct inode *inode, struct file *file) in sockstat6_seq_open() argument
58 return single_open_net(inode, file, sockstat6_seq_show); in sockstat6_seq_open()
246 static int snmp6_seq_open(struct inode *inode, struct file *file) in snmp6_seq_open() argument
248 return single_open_net(inode, file, snmp6_seq_show); in snmp6_seq_open()
272 static int snmp6_dev_seq_open(struct inode *inode, struct file *file) in snmp6_dev_seq_open() argument
274 return single_open(file, snmp6_dev_seq_show, PDE_DATA(inode)); in snmp6_dev_seq_open()
/net/rxrpc/
Dproc.c121 static int rxrpc_call_seq_open(struct inode *inode, struct file *file) in rxrpc_call_seq_open() argument
123 return seq_open_net(inode, file, &rxrpc_call_seq_ops, in rxrpc_call_seq_open()
213 static int rxrpc_connection_seq_open(struct inode *inode, struct file *file) in rxrpc_connection_seq_open() argument
215 return seq_open_net(inode, file, &rxrpc_connection_seq_ops, in rxrpc_connection_seq_open()

1234567