/net/batman-adv/ |
D | debugfs.c | 100 static int batadv_log_open(struct inode *inode, struct file *file) in batadv_log_open() argument 105 nonseekable_open(inode, file); in batadv_log_open() 106 file->private_data = inode->i_private; in batadv_log_open() 110 static int batadv_log_release(struct inode *inode, struct file *file) in batadv_log_release() argument 121 static ssize_t batadv_log_read(struct file *file, char __user *buf, in batadv_log_read() argument 124 struct batadv_priv *bat_priv = file->private_data; in batadv_log_read() 130 if ((file->f_flags & O_NONBLOCK) && batadv_log_empty(debug_log)) in batadv_log_read() 176 static unsigned int batadv_log_poll(struct file *file, poll_table *wait) in batadv_log_poll() argument 178 struct batadv_priv *bat_priv = file->private_data; in batadv_log_poll() 181 poll_wait(file, &debug_log->queue_wait, wait); in batadv_log_poll() [all …]
|
D | icmp_socket.c | 38 static int batadv_socket_open(struct inode *inode, struct file *file) in batadv_socket_open() argument 46 nonseekable_open(inode, file); in batadv_socket_open() 75 file->private_data = socket_client; in batadv_socket_open() 80 static int batadv_socket_release(struct inode *inode, struct file *file) in batadv_socket_release() argument 82 struct batadv_socket_client *socket_client = file->private_data; in batadv_socket_release() 106 static ssize_t batadv_socket_read(struct file *file, char __user *buf, in batadv_socket_read() argument 109 struct batadv_socket_client *socket_client = file->private_data; in batadv_socket_read() 114 if ((file->f_flags & O_NONBLOCK) && (socket_client->queue_len == 0)) in batadv_socket_read() 149 static ssize_t batadv_socket_write(struct file *file, const char __user *buff, in batadv_socket_write() argument 152 struct batadv_socket_client *socket_client = file->private_data; in batadv_socket_write() [all …]
|
/net/mac80211/ |
D | debugfs_sta.c | 23 static ssize_t sta_ ##name## _read(struct file *file, \ 27 struct sta_info *sta = file->private_data; \ 67 static ssize_t sta_flags_read(struct file *file, char __user *userbuf, in sta_flags_read() argument 71 struct sta_info *sta = file->private_data; in sta_flags_read() 94 static ssize_t sta_num_ps_buf_frames_read(struct file *file, in sta_num_ps_buf_frames_read() argument 98 struct sta_info *sta = file->private_data; in sta_num_ps_buf_frames_read() 110 static ssize_t sta_inactive_ms_read(struct file *file, char __user *userbuf, in sta_inactive_ms_read() argument 113 struct sta_info *sta = file->private_data; in sta_inactive_ms_read() 120 static ssize_t sta_connected_time_read(struct file *file, char __user *userbuf, in sta_connected_time_read() argument 123 struct sta_info *sta = file->private_data; in sta_connected_time_read() [all …]
|
D | debugfs_key.c | 19 static ssize_t key_##name##_read(struct file *file, \ 23 struct ieee80211_key *key = file->private_data; \ 64 static ssize_t key_algorithm_read(struct file *file, in key_algorithm_read() argument 69 struct ieee80211_key *key = file->private_data; in key_algorithm_read() 78 static ssize_t key_tx_spec_read(struct file *file, char __user *userbuf, in key_tx_spec_read() argument 84 struct ieee80211_key *key = file->private_data; in key_tx_spec_read() 115 static ssize_t key_rx_spec_read(struct file *file, char __user *userbuf, in key_rx_spec_read() argument 118 struct ieee80211_key *key = file->private_data; in key_rx_spec_read() 161 static ssize_t key_replays_read(struct file *file, char __user *userbuf, in key_replays_read() argument 164 struct ieee80211_key *key = file->private_data; in key_replays_read() [all …]
|
D | rc80211_minstrel_debugfs.c | 58 minstrel_stats_open(struct inode *inode, struct file *file) in minstrel_stats_open() argument 69 file->private_data = ms; in minstrel_stats_open() 111 minstrel_stats_read(struct file *file, char __user *buf, size_t len, loff_t *ppos) in minstrel_stats_read() argument 115 ms = file->private_data; in minstrel_stats_read() 120 minstrel_stats_release(struct inode *inode, struct file *file) in minstrel_stats_release() argument 122 kfree(file->private_data); in minstrel_stats_release()
|
D | debugfs.c | 30 static ssize_t sta_tx_latency_stat_read(struct file *file, in sta_tx_latency_stat_read() argument 34 struct ieee80211_local *local = file->private_data; in sta_tx_latency_stat_read() 98 static ssize_t sta_tx_latency_stat_write(struct file *file, in sta_tx_latency_stat_write() argument 102 struct ieee80211_local *local = file->private_data; in sta_tx_latency_stat_write() 202 static ssize_t name## _read(struct file *file, char __user *userbuf, \ 205 struct ieee80211_local *local = file->private_data; \ 241 static ssize_t reset_write(struct file *file, const char __user *user_buf, in reset_write() argument 244 struct ieee80211_local *local = file->private_data; in reset_write() 261 static ssize_t hwflags_read(struct file *file, char __user *user_buf, in hwflags_read() argument 264 struct ieee80211_local *local = file->private_data; in hwflags_read() [all …]
|
D | rc80211_minstrel.h | 136 int minstrel_stats_open(struct inode *inode, struct file *file); 137 ssize_t minstrel_stats_read(struct file *file, char __user *buf, size_t len, loff_t *ppos); 138 int minstrel_stats_release(struct inode *inode, struct file *file);
|
D | rc80211_minstrel_ht_debugfs.c | 82 minstrel_ht_stats_open(struct inode *inode, struct file *file) in minstrel_ht_stats_open() argument 94 ret = minstrel_stats_open(inode, file); in minstrel_ht_stats_open() 103 file->private_data = ms; in minstrel_ht_stats_open() 124 return nonseekable_open(inode, file); in minstrel_ht_stats_open()
|
/net/irda/irnet/ |
D | irnet_ppp.c | 280 struct file * file, in irnet_ctrl_read() argument 316 if(file->f_flags & O_NONBLOCK) in irnet_ctrl_read() 423 struct file * file, in irnet_ctrl_poll() argument 430 poll_wait(file, &irnet_events.rwait, wait); in irnet_ctrl_poll() 467 struct file * file) in dev_irnet_open() argument 472 DENTER(FS_TRACE, "(file=0x%p)\n", file); in dev_irnet_open() 485 ap->file = file; in dev_irnet_open() 515 file->private_data = ap; in dev_irnet_open() 530 struct file * file) in dev_irnet_close() argument 532 irnet_socket * ap = file->private_data; in dev_irnet_close() [all …]
|
D | irnet_ppp.h | 54 struct file *, 59 struct file *, 64 struct file *), 66 struct file *); 68 dev_irnet_write(struct file *, 72 dev_irnet_read(struct file *, 77 dev_irnet_poll(struct file *, 80 dev_irnet_ioctl(struct file *,
|
/net/ |
D | socket.c | 116 static int sock_no_open(struct inode *irrelevant, struct file *dontcare); 121 static int sock_mmap(struct file *file, struct vm_area_struct *vma); 123 static int sock_close(struct inode *inode, struct file *file); 124 static unsigned int sock_poll(struct file *file, 126 static long sock_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 128 static long compat_sock_ioctl(struct file *file, 131 static int sock_fasync(int fd, struct file *filp, int on); 132 static ssize_t sock_sendpage(struct file *file, struct page *page, 134 static ssize_t sock_splice_read(struct file *file, loff_t *ppos, 270 ei->socket.file = NULL; in sock_alloc_inode() [all …]
|
/net/atm/ |
D | proc.c | 35 static ssize_t proc_dev_atm_read(struct file *file, char __user *buf, 115 static int __vcc_seq_open(struct inode *inode, struct file *file, in __vcc_seq_open() argument 120 state = __seq_open_private(file, ops, sizeof(*state)); in __vcc_seq_open() 260 static int atm_dev_seq_open(struct inode *inode, struct file *file) in atm_dev_seq_open() argument 262 return seq_open(file, &atm_dev_seq_ops); in atm_dev_seq_open() 295 static int pvc_seq_open(struct inode *inode, struct file *file) in pvc_seq_open() argument 297 return __vcc_seq_open(inode, file, PF_ATMPVC, &pvc_seq_ops); in pvc_seq_open() 329 static int vcc_seq_open(struct inode *inode, struct file *file) in vcc_seq_open() argument 331 return __vcc_seq_open(inode, file, 0, &vcc_seq_ops); in vcc_seq_open() 364 static int svc_seq_open(struct inode *inode, struct file *file) in svc_seq_open() argument [all …]
|
D | mpoa_proc.c | 49 static int proc_mpc_open(struct inode *inode, struct file *file); 50 static ssize_t proc_mpc_write(struct file *file, const char __user *buff, 201 static int proc_mpc_open(struct inode *inode, struct file *file) in proc_mpc_open() argument 203 return seq_open(file, &mpc_op); in proc_mpc_open() 206 static ssize_t proc_mpc_write(struct file *file, const char __user *buff, in proc_mpc_write() argument
|
/net/can/ |
D | proc.c | 276 static int can_stats_proc_open(struct inode *inode, struct file *file) in can_stats_proc_open() argument 278 return single_open(file, can_stats_proc_show, NULL); 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(file, can_reset_stats_proc_show, NULL); 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(file, can_version_proc_show, NULL); in can_version_proc_open() 378 static int can_rcvlist_proc_open(struct inode *inode, struct file *file) in can_rcvlist_proc_open() argument 380 return single_open(file, can_rcvlist_proc_show, PDE_DATA(inode)); in can_rcvlist_proc_open() 445 static int can_rcvlist_sff_proc_open(struct inode *inode, struct file *file) in can_rcvlist_sff_proc_open() argument 447 return single_open(file, can_rcvlist_sff_proc_show, NULL); in can_rcvlist_sff_proc_open() [all …]
|
/net/sunrpc/ |
D | cache.c | 755 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, in cache_read() 893 static ssize_t cache_write(struct file *filp, const char __user *buf, in cache_write() 913 static unsigned int cache_poll(struct file *filp, poll_table *wait, in cache_poll() 940 static int cache_ioctl(struct inode *ino, struct file *filp, in cache_ioctl() 969 static int cache_open(struct inode *inode, struct file *filp, in cache_open() 994 static int cache_release(struct inode *inode, struct file *filp, in cache_release() 1385 static int content_open(struct inode *inode, struct file *file, in content_open() argument 1392 han = __seq_open_private(file, &cache_content_op, sizeof(*han)); in content_open() 1402 static int content_release(struct inode *inode, struct file *file, in content_release() argument 1405 int ret = seq_release_private(inode, file); in content_release() [all …]
|
/net/x25/ |
D | x25_proc.c | 174 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/ |
D | net-procfs.c | 176 static int dev_seq_open(struct inode *inode, struct file *file) in dev_seq_open() argument 178 return seq_open_net(inode, file, &dev_seq_ops, in dev_seq_open() 197 static int softnet_seq_open(struct inode *inode, struct file *file) in softnet_seq_open() argument 199 return seq_open(file, &softnet_seq_ops); in softnet_seq_open() 300 static int ptype_seq_open(struct inode *inode, struct file *file) in ptype_seq_open() argument 302 return seq_open_net(inode, file, &ptype_seq_ops, in ptype_seq_open() 386 static int dev_mc_seq_open(struct inode *inode, struct file *file) in dev_mc_seq_open() argument 388 return seq_open_net(inode, file, &dev_mc_seq_ops, in dev_mc_seq_open()
|
/net/wireless/ |
D | debugfs.c | 17 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/ |
D | atalk_proc.c | 213 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/sctp/ |
D | proc.c | 88 static int sctp_snmp_seq_open(struct inode *inode, struct file *file) in sctp_snmp_seq_open() argument 90 return single_open_net(inode, file, sctp_snmp_seq_show); in sctp_snmp_seq_open() 252 static int sctp_eps_seq_open(struct inode *inode, struct file *file) in sctp_eps_seq_open() argument 254 return seq_open_net(inode, file, &sctp_eps_ops, in sctp_eps_seq_open() 378 static int sctp_assocs_seq_open(struct inode *inode, struct file *file) in sctp_assocs_seq_open() argument 380 return seq_open_net(inode, file, &sctp_assoc_ops, in sctp_assocs_seq_open() 527 static int sctp_remaddr_seq_open(struct inode *inode, struct file *file) in sctp_remaddr_seq_open() argument 529 return seq_open_net(inode, file, &sctp_remaddr_ops, in sctp_remaddr_seq_open()
|
/net/ipv6/ |
D | proc.c | 50 static int sockstat6_seq_open(struct inode *inode, struct file *file) in sockstat6_seq_open() argument 52 return single_open_net(inode, file, sockstat6_seq_show); in sockstat6_seq_open() 230 static int snmp6_seq_open(struct inode *inode, struct file *file) in snmp6_seq_open() argument 232 return single_open_net(inode, file, snmp6_seq_show); in snmp6_seq_open() 256 static int snmp6_dev_seq_open(struct inode *inode, struct file *file) in snmp6_dev_seq_open() argument 258 return single_open(file, snmp6_dev_seq_show, PDE_DATA(inode)); in snmp6_dev_seq_open()
|
/net/ipx/ |
D | ipx_proc.c | 246 static int ipx_seq_route_open(struct inode *inode, struct file *file) in ipx_seq_route_open() argument 248 return seq_open(file, &ipx_seq_route_ops); in ipx_seq_route_open() 251 static int ipx_seq_interface_open(struct inode *inode, struct file *file) in ipx_seq_interface_open() argument 253 return seq_open(file, &ipx_seq_interface_ops); in ipx_seq_interface_open() 256 static int ipx_seq_socket_open(struct inode *inode, struct file *file) in ipx_seq_socket_open() argument 258 return seq_open(file, &ipx_seq_socket_ops); in ipx_seq_socket_open()
|
/net/rxrpc/ |
D | ar-proc.c | 96 static int rxrpc_call_seq_open(struct inode *inode, struct file *file) in rxrpc_call_seq_open() argument 98 return seq_open(file, &rxrpc_call_seq_ops); in rxrpc_call_seq_open() 181 static int rxrpc_connection_seq_open(struct inode *inode, struct file *file) in rxrpc_connection_seq_open() argument 183 return seq_open(file, &rxrpc_connection_seq_ops); in rxrpc_connection_seq_open()
|
/net/rfkill/ |
D | core.c | 1024 static int rfkill_fop_open(struct inode *inode, struct file *file) in rfkill_fop_open() argument 1056 file->private_data = data; in rfkill_fop_open() 1058 return nonseekable_open(inode, file); in rfkill_fop_open() 1070 static unsigned int rfkill_fop_poll(struct file *file, poll_table *wait) in rfkill_fop_poll() argument 1072 struct rfkill_data *data = file->private_data; in rfkill_fop_poll() 1075 poll_wait(file, &data->read_wait, wait); in rfkill_fop_poll() 1085 static ssize_t rfkill_fop_read(struct file *file, char __user *buf, in rfkill_fop_read() argument 1088 struct rfkill_data *data = file->private_data; in rfkill_fop_read() 1096 if (file->f_flags & O_NONBLOCK) { in rfkill_fop_read() 1127 static ssize_t rfkill_fop_write(struct file *file, const char __user *buf, in rfkill_fop_write() argument [all …]
|
/net/l2tp/ |
D | l2tp_debugfs.c | 257 static int l2tp_dfs_seq_open(struct inode *inode, struct file *file) in l2tp_dfs_seq_open() argument 276 rc = seq_open(file, &l2tp_dfs_seq_ops); in l2tp_dfs_seq_open() 280 seq = file->private_data; in l2tp_dfs_seq_open() 293 static int l2tp_dfs_seq_release(struct inode *inode, struct file *file) in l2tp_dfs_seq_release() argument 298 seq = file->private_data; in l2tp_dfs_seq_release() 303 seq_release(inode, file); in l2tp_dfs_seq_release()
|