Home
last modified time | relevance | path

Searched refs:inode (Results 1 – 25 of 27) sorted by relevance

12

/net/batman-adv/
Ddebugfs.c53 static int batadv_algorithms_open(struct inode *inode, struct file *file) in batadv_algorithms_open() argument
60 static int neighbors_open(struct inode *inode, struct file *file) in neighbors_open() argument
62 struct net_device *net_dev = (struct net_device *)inode->i_private; in neighbors_open()
69 static int batadv_originators_open(struct inode *inode, struct file *file) in batadv_originators_open() argument
71 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_originators_open()
86 static int batadv_originators_hardif_open(struct inode *inode, in batadv_originators_hardif_open() argument
89 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_originators_hardif_open()
96 static int batadv_gateways_open(struct inode *inode, struct file *file) in batadv_gateways_open() argument
98 struct net_device *net_dev = (struct net_device *)inode->i_private; in batadv_gateways_open()
105 static int batadv_transtable_global_open(struct inode *inode, struct file *file) in batadv_transtable_global_open() argument
[all …]
Dlog.c85 static int batadv_log_open(struct inode *inode, struct file *file) in batadv_log_open() argument
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
Dicmp_socket.c58 static int batadv_socket_open(struct inode *inode, struct file *file) in batadv_socket_open() argument
68 stream_open(inode, file); in batadv_socket_open()
93 socket_client->bat_priv = inode->i_private; in batadv_socket_open()
102 static int batadv_socket_release(struct inode *inode, struct file *file) in batadv_socket_release() argument
/net/sunrpc/
Drpc_pipe.c165 rpc_inode_setowner(struct inode *inode, void *private) in rpc_inode_setowner() argument
167 RPC_I(inode)->private = private; in rpc_inode_setowner()
171 rpc_close_pipes(struct inode *inode) in rpc_close_pipes() argument
173 struct rpc_pipe *pipe = RPC_I(inode)->pipe; in rpc_close_pipes()
177 inode_lock(inode); in rpc_close_pipes()
186 rpc_purge_list(&RPC_I(inode)->waitq, &free_list, pipe->ops->destroy_msg, -EPIPE); in rpc_close_pipes()
189 pipe->ops->release_pipe(inode); in rpc_close_pipes()
191 rpc_inode_setowner(inode, NULL); in rpc_close_pipes()
192 RPC_I(inode)->pipe = NULL; in rpc_close_pipes()
193 inode_unlock(inode); in rpc_close_pipes()
[all …]
Dcache.c801 struct inode *inode = file_inode(filp); in cache_read() local
807 inode_lock(inode); /* protect against multiple concurrent in cache_read()
820 inode_unlock(inode); in cache_read()
874 inode_unlock(inode); in cache_read()
939 struct inode *inode = file_inode(filp); in cache_write() local
945 inode_lock(inode); in cache_write()
947 inode_unlock(inode); in cache_write()
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() argument
1017 nonseekable_open(inode, filp); in cache_open()
[all …]
Ddebugfs.c86 static int tasks_open(struct inode *inode, struct file *filp) in tasks_open() argument
91 struct rpc_clnt *clnt = seq->private = inode->i_private; in tasks_open()
94 seq_release(inode, filp); in tasks_open()
103 tasks_release(struct inode *inode, struct file *filp) in tasks_release() argument
109 return seq_release(inode, filp); in tasks_release()
186 xprt_info_open(struct inode *inode, struct file *filp) in xprt_info_open() argument
189 struct rpc_xprt *xprt = inode->i_private; in xprt_info_open()
195 single_release(inode, filp); in xprt_info_open()
203 xprt_info_release(struct inode *inode, struct file *filp) in xprt_info_release() argument
205 struct rpc_xprt *xprt = inode->i_private; in xprt_info_release()
[all …]
Dstats.c67 static int rpc_proc_open(struct inode *inode, struct file *file) in rpc_proc_open() argument
69 return single_open(file, rpc_proc_show, PDE_DATA(inode)); in rpc_proc_open()
/net/mac80211/
Drc80211_minstrel_ht_debugfs.c25 minstrel_stats_release(struct inode *inode, struct file *file) in minstrel_stats_release() argument
121 minstrel_ht_stats_open(struct inode *inode, struct file *file) in minstrel_ht_stats_open() argument
123 struct minstrel_ht_sta_priv *msp = inode->i_private; in minstrel_ht_stats_open()
131 inode->i_private = &msp->legacy; in minstrel_ht_stats_open()
132 ret = minstrel_stats_open(inode, file); in minstrel_ht_stats_open()
133 inode->i_private = msp; 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
273 struct minstrel_ht_sta_priv *msp = inode->i_private; in minstrel_ht_stats_csv_open()
281 inode->i_private = &msp->legacy; in minstrel_ht_stats_csv_open()
[all …]
Drc80211_minstrel_debugfs.c58 minstrel_stats_open(struct inode *inode, struct file *file) in minstrel_stats_open() argument
60 struct minstrel_sta_info *mi = inode->i_private; in minstrel_stats_open()
120 minstrel_stats_csv_open(struct inode *inode, struct file *file) in minstrel_stats_csv_open() argument
122 struct minstrel_sta_info *mi = inode->i_private; 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/ipv4/
Dfib_trie.c454 struct key_vector *inode = get_child(tn, --i); in update_children() local
456 if (!inode) in update_children()
463 if (node_parent(inode) == tn) in update_children()
464 update_children(inode); in update_children()
466 node_set_parent(inode, tn); in update_children()
528 struct key_vector *inode = get_child(tn, --i); in replace() local
531 if (tnode_full(tn, inode)) in replace()
532 tn = resize(t, inode); in replace()
560 struct key_vector *inode = get_child(oldtnode, --i); in inflate() local
565 if (!inode) in inflate()
[all …]
/net/unix/
Dscm.c26 struct inode *inode = file_inode(filp); in unix_get_socket() local
29 if (S_ISSOCK(inode->i_mode) && !(filp->f_mode & FMODE_PATH)) { in unix_get_socket()
30 struct socket *sock = SOCKET_I(inode); in unix_get_socket()
Daf_unix.c309 static struct sock *unix_find_socket_byinode(struct inode *i) in unix_find_socket_byinode()
920 struct inode *inode; in unix_find_other() local
924 inode = d_backing_inode(path.dentry); in unix_find_other()
925 err = inode_permission(inode, MAY_WRITE); in unix_find_other()
930 if (!S_ISSOCK(inode->i_mode)) in unix_find_other()
932 u = unix_find_socket_byinode(inode); in unix_find_other()
/net/qrtr/
Dtun.c31 static int qrtr_tun_open(struct inode *inode, struct file *filp) in qrtr_tun_open() argument
111 static int qrtr_tun_release(struct inode *inode, struct file *filp) in qrtr_tun_release() argument
/net/hsr/
Dhsr_debugfs.c63 hsr_node_table_open(struct inode *inode, struct file *filp) in hsr_node_table_open() argument
65 return single_open(filp, hsr_node_table_show, inode->i_private); in hsr_node_table_open()
/net/l2tp/
Dl2tp_debugfs.c267 static int l2tp_dfs_seq_open(struct inode *inode, struct file *file) in l2tp_dfs_seq_open() argument
303 static int l2tp_dfs_seq_release(struct inode *inode, struct file *file) in l2tp_dfs_seq_release() argument
313 seq_release(inode, file); in l2tp_dfs_seq_release()
/net/atm/
Dmpoa_proc.c50 static int proc_mpc_open(struct inode *inode, struct file *file);
204 static int proc_mpc_open(struct inode *inode, struct file *file) in proc_mpc_open() argument
/net/
Dsocket.c116 static int sock_close(struct inode *inode, struct file *file);
235 static struct inode *sock_alloc_inode(struct super_block *sb) in sock_alloc_inode()
255 static void sock_free_inode(struct inode *inode) in sock_free_inode() argument
259 ei = container_of(inode, struct socket_alloc, vfs_inode); in sock_free_inode()
302 struct dentry *dentry, struct inode *inode, in sockfs_xattr_get() argument
324 struct dentry *dentry, struct inode *inode, in sockfs_security_xattr_set() argument
556 struct inode *inode; in sock_alloc() local
559 inode = new_inode_pseudo(sock_mnt->mnt_sb); in sock_alloc()
560 if (!inode) in sock_alloc()
563 sock = SOCKET_I(inode); in sock_alloc()
[all …]
/net/ipv4/netfilter/
Dipt_CLUSTERIP.c745 static int clusterip_proc_open(struct inode *inode, struct file *file) in clusterip_proc_open() argument
751 struct clusterip_config *c = PDE_DATA(inode); in clusterip_proc_open()
761 static int clusterip_proc_release(struct inode *inode, struct file *file) in clusterip_proc_release() argument
763 struct clusterip_config *c = PDE_DATA(inode); in clusterip_proc_release()
766 ret = seq_release(inode, file); in clusterip_proc_release()
/net/6lowpan/
Ddebugfs.c118 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()
/net/sunrpc/auth_gss/
Dauth_gss.c805 static int gss_pipe_open(struct inode *inode, int new_version) in gss_pipe_open() argument
807 struct net *net = inode->i_sb->s_fs_info; in gss_pipe_open()
829 static int gss_pipe_open_v0(struct inode *inode) in gss_pipe_open_v0() argument
831 return gss_pipe_open(inode, 0); in gss_pipe_open_v0()
834 static int gss_pipe_open_v1(struct inode *inode) in gss_pipe_open_v1() argument
836 return gss_pipe_open(inode, 1); in gss_pipe_open_v1()
840 gss_pipe_release(struct inode *inode) in gss_pipe_release() argument
842 struct net *net = inode->i_sb->s_fs_info; in gss_pipe_release()
843 struct rpc_pipe *pipe = RPC_I(inode)->pipe; in gss_pipe_release()
/net/rfkill/
Dcore.c1103 static int rfkill_fop_open(struct inode *inode, struct file *file) in rfkill_fop_open() argument
1137 return stream_open(inode, file); in rfkill_fop_open()
1258 static int rfkill_fop_release(struct inode *inode, struct file *file) in rfkill_fop_release() argument
/net/netfilter/
Dxt_recent.c538 static int recent_seq_open(struct inode *inode, struct file *file) in recent_seq_open() argument
546 st->table = PDE_DATA(inode); in recent_seq_open()
/net/core/
Dpktgen.c533 static int pgctrl_open(struct inode *inode, struct file *file) in pgctrl_open() argument
535 return single_open(file, pgctrl_show, PDE_DATA(inode)); in pgctrl_open()
1705 static int pktgen_if_open(struct inode *inode, struct file *file) in pktgen_if_open() argument
1707 return single_open(file, pktgen_if_show, PDE_DATA(inode)); in pktgen_if_open()
1842 static int pktgen_thread_open(struct inode *inode, struct file *file) in pktgen_thread_open() argument
1844 return single_open(file, pktgen_thread_show, PDE_DATA(inode)); in pktgen_thread_open()
/net/bluetooth/
D6lowpan.c1193 static int lowpan_control_open(struct inode *inode, struct file *file) in lowpan_control_open() argument
1195 return single_open(file, lowpan_control_show, inode->i_private); in lowpan_control_open()

12