Home
last modified time | relevance | path

Searched refs:filp (Results 1 – 16 of 16) sorted by relevance

/net/sunrpc/
Dcache.c796 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, in cache_read() argument
799 struct cache_reader *rp = filp->private_data; in cache_read()
801 struct inode *inode = file_inode(filp); in cache_read()
934 static ssize_t cache_write(struct file *filp, const char __user *buf, in cache_write() argument
938 struct address_space *mapping = filp->f_mapping; in cache_write()
939 struct inode *inode = file_inode(filp); in cache_write()
954 static __poll_t cache_poll(struct file *filp, poll_table *wait, in cache_poll() argument
958 struct cache_reader *rp = filp->private_data; in cache_poll()
961 poll_wait(filp, &queue_wait, wait); in cache_poll()
981 static int cache_ioctl(struct inode *ino, struct file *filp, in cache_ioctl() argument
[all …]
Ddebugfs.c86 static int tasks_open(struct inode *inode, struct file *filp) in tasks_open() argument
88 int ret = seq_open(filp, &tasks_seq_operations); in tasks_open()
90 struct seq_file *seq = filp->private_data; in tasks_open()
94 seq_release(inode, filp); in tasks_open()
103 tasks_release(struct inode *inode, struct file *filp) in tasks_release() argument
105 struct seq_file *seq = filp->private_data; in tasks_release()
109 return seq_release(inode, filp); in tasks_release()
186 xprt_info_open(struct inode *inode, struct file *filp) in xprt_info_open() argument
191 ret = single_open(filp, xprt_info_show, xprt); in xprt_info_open()
195 single_release(inode, filp); in xprt_info_open()
[all …]
Drpc_pipe.c104 ssize_t rpc_pipe_generic_upcall(struct file *filp, struct rpc_pipe_msg *msg, in rpc_pipe_generic_upcall() argument
213 rpc_pipe_open(struct inode *inode, struct file *filp) in rpc_pipe_open() argument
229 if (filp->f_mode & FMODE_READ) in rpc_pipe_open()
231 if (filp->f_mode & FMODE_WRITE) in rpc_pipe_open()
240 rpc_pipe_release(struct inode *inode, struct file *filp) in rpc_pipe_release() argument
250 msg = filp->private_data; in rpc_pipe_release()
258 if (filp->f_mode & FMODE_WRITE) in rpc_pipe_release()
260 if (filp->f_mode & FMODE_READ) { in rpc_pipe_release()
281 rpc_pipe_read(struct file *filp, char __user *buf, size_t len, loff_t *offset) in rpc_pipe_read() argument
283 struct inode *inode = file_inode(filp); in rpc_pipe_read()
[all …]
Dxprtsock.c1277 struct file *filp = transport->file; in xs_reset_transport() local
1304 fput(filp); in xs_reset_transport()
1900 struct file *filp; in xs_create_sock() local
1921 filp = sock_alloc_file(sock, O_NONBLOCK, NULL); in xs_create_sock()
1922 if (IS_ERR(filp)) in xs_create_sock()
1923 return ERR_CAST(filp); in xs_create_sock()
1924 transport->file = filp; in xs_create_sock()
1971 struct file *filp; in xs_local_setup_socket() local
1984 filp = sock_alloc_file(sock, O_NONBLOCK, NULL); in xs_local_setup_socket()
1985 if (IS_ERR(filp)) { in xs_local_setup_socket()
[all …]
/net/qrtr/
Dtun.c31 static int qrtr_tun_open(struct inode *inode, struct file *filp) in qrtr_tun_open() argument
44 filp->private_data = tun; in qrtr_tun_open()
51 struct file *filp = iocb->ki_filp; in qrtr_tun_read_iter() local
52 struct qrtr_tun *tun = filp->private_data; in qrtr_tun_read_iter()
57 if (filp->f_flags & O_NONBLOCK) in qrtr_tun_read_iter()
77 struct file *filp = iocb->ki_filp; in qrtr_tun_write_iter() local
78 struct qrtr_tun *tun = filp->private_data; in qrtr_tun_write_iter()
98 static __poll_t qrtr_tun_poll(struct file *filp, poll_table *wait) in qrtr_tun_poll() argument
100 struct qrtr_tun *tun = filp->private_data; in qrtr_tun_poll()
103 poll_wait(filp, &tun->readq, wait); in qrtr_tun_poll()
[all …]
/net/netfilter/
Dxt_owner.c66 const struct file *filp; in owner_mt() local
79 filp = sk->sk_socket->file; in owner_mt()
80 if (filp == NULL) in owner_mt()
87 if ((uid_gte(filp->f_cred->fsuid, uid_min) && in owner_mt()
88 uid_lte(filp->f_cred->fsuid, uid_max)) ^ in owner_mt()
97 struct group_info *gi = filp->f_cred->group_info; in owner_mt()
99 if (gid_gte(filp->f_cred->fsgid, gid_min) && in owner_mt()
100 gid_lte(filp->f_cred->fsgid, gid_max)) in owner_mt()
/net/unix/
Dscm.c23 struct sock *unix_get_socket(struct file *filp) in unix_get_socket() argument
26 struct inode *inode = file_inode(filp); in unix_get_socket()
29 if (S_ISSOCK(inode->i_mode) && !(filp->f_mode & FMODE_PATH)) { in unix_get_socket()
38 u_sock = io_uring_get_socket(filp); in unix_get_socket()
/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/bluetooth/rfcomm/
Dtty.c747 static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp) in rfcomm_tty_open() argument
757 err = tty_port_open(&dev->port, tty, filp); in rfcomm_tty_open()
773 static void rfcomm_tty_close(struct tty_struct *tty, struct file *filp) in rfcomm_tty_close() argument
780 tty_port_close(&dev->port, tty, filp); in rfcomm_tty_close()
/net/vmw_vsock/
Daf_vsock.c1877 static long vsock_dev_do_ioctl(struct file *filp, in vsock_dev_do_ioctl() argument
1897 static long vsock_dev_ioctl(struct file *filp, in vsock_dev_ioctl() argument
1900 return vsock_dev_do_ioctl(filp, cmd, (void __user *)arg); in vsock_dev_ioctl()
1904 static long vsock_dev_compat_ioctl(struct file *filp, in vsock_dev_compat_ioctl() argument
1907 return vsock_dev_do_ioctl(filp, cmd, compat_ptr(arg)); in vsock_dev_compat_ioctl()
/net/nfc/nci/
Duart.c307 struct file *filp, poll_table *wait) in nci_uart_tty_poll() argument
/net/
Dsocket.c124 static int sock_fasync(int fd, struct file *filp, int on);
1267 static int sock_close(struct inode *inode, struct file *filp) in sock_close() argument
1284 static int sock_fasync(int fd, struct file *filp, int on) in sock_fasync() argument
1286 struct socket *sock = filp->private_data; in sock_fasync()
1294 fasync_helper(fd, filp, on, &wq->fasync_list); in sock_fasync()
/net/9p/
Dtrans_fd.c544 p9_pollwait(struct file *filp, wait_queue_head_t *wait_address, poll_table *p) in p9_pollwait() argument
/net/bridge/
Dbr_sysfs_br.c915 static ssize_t brforward_read(struct file *filp, struct kobject *kobj, in brforward_read() argument
/net/sunrpc/auth_gss/
Dauth_gss.c716 gss_pipe_downcall(struct file *filp, const char __user *src, size_t mlen) in gss_pipe_downcall() argument
721 struct rpc_pipe *pipe = RPC_I(file_inode(filp))->pipe; in gss_pipe_downcall()
/net/netlink/
Daf_netlink.c1151 struct sock *netlink_getsockbyfilp(struct file *filp) in netlink_getsockbyfilp() argument
1153 struct inode *inode = file_inode(filp); in netlink_getsockbyfilp()