/net/sunrpc/ |
D | cache.c | 755 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, in cache_read() argument 758 struct cache_reader *rp = filp->private_data; in cache_read() 760 struct inode *inode = file_inode(filp); in cache_read() 893 static ssize_t cache_write(struct file *filp, const char __user *buf, in cache_write() argument 897 struct address_space *mapping = filp->f_mapping; in cache_write() 898 struct inode *inode = file_inode(filp); in cache_write() 913 static unsigned int cache_poll(struct file *filp, poll_table *wait, in cache_poll() argument 917 struct cache_reader *rp = filp->private_data; in cache_poll() 920 poll_wait(filp, &queue_wait, wait); in cache_poll() 940 static int cache_ioctl(struct inode *ino, struct file *filp, in cache_ioctl() argument [all …]
|
D | rpc_pipe.c | 102 ssize_t rpc_pipe_generic_upcall(struct file *filp, struct rpc_pipe_msg *msg, in rpc_pipe_generic_upcall() argument 218 rpc_pipe_open(struct inode *inode, struct file *filp) in rpc_pipe_open() argument 234 if (filp->f_mode & FMODE_READ) in rpc_pipe_open() 236 if (filp->f_mode & FMODE_WRITE) in rpc_pipe_open() 245 rpc_pipe_release(struct inode *inode, struct file *filp) in rpc_pipe_release() argument 255 msg = filp->private_data; in rpc_pipe_release() 263 if (filp->f_mode & FMODE_WRITE) in rpc_pipe_release() 265 if (filp->f_mode & FMODE_READ) { in rpc_pipe_release() 286 rpc_pipe_read(struct file *filp, char __user *buf, size_t len, loff_t *offset) in rpc_pipe_read() argument 288 struct inode *inode = file_inode(filp); in rpc_pipe_read() [all …]
|
/net/netfilter/ |
D | xt_owner.c | 35 const struct file *filp; in owner_mt() local 46 filp = skb->sk->sk_socket->file; in owner_mt() 47 if (filp == NULL) in owner_mt() 54 if ((uid_gte(filp->f_cred->fsuid, uid_min) && in owner_mt() 55 uid_lte(filp->f_cred->fsuid, uid_max)) ^ in owner_mt() 63 if ((gid_gte(filp->f_cred->fsgid, gid_min) && in owner_mt() 64 gid_lte(filp->f_cred->fsgid, gid_max)) ^ in owner_mt()
|
D | xt_qtaguid.c | 1646 const struct file *filp; in qtaguid_mt() local 1762 filp = sk->sk_socket ? sk->sk_socket->file : NULL; in qtaguid_mt() 1763 if (!filp) { in qtaguid_mt() 1770 par->hooknum, filp ? in qtaguid_mt() 1771 from_kuid(&init_user_ns, filp->f_cred->fsuid) : -1); in qtaguid_mt() 1772 if ((gid_gte(filp->f_cred->fsgid, gid_min) && in qtaguid_mt() 1773 gid_lte(filp->f_cred->fsgid, gid_max)) ^ in qtaguid_mt()
|
/net/irda/ircomm/ |
D | ircomm_tty.c | 55 static int ircomm_tty_open(struct tty_struct *tty, struct file *filp); 56 static void ircomm_tty_close(struct tty_struct * tty, struct file *filp); 276 struct tty_struct *tty, struct file *filp) in ircomm_tty_block_til_ready() argument 295 if (filp->f_flags & O_NONBLOCK) { in ircomm_tty_block_til_ready() 333 if (tty_hung_up_p(filp) || in ircomm_tty_block_til_ready() 367 if (!tty_hung_up_p(filp)) in ircomm_tty_block_til_ready() 437 static int ircomm_tty_open(struct tty_struct *tty, struct file *filp) in ircomm_tty_open() argument 502 ret = ircomm_tty_block_til_ready(self, tty, filp); in ircomm_tty_open() 519 static void ircomm_tty_close(struct tty_struct *tty, struct file *filp) in ircomm_tty_close() argument 529 if (tty_port_close_start(port, tty, filp) == 0) in ircomm_tty_close()
|
/net/unix/ |
D | garbage.c | 99 struct sock *unix_get_socket(struct file *filp) in unix_get_socket() argument 102 struct inode *inode = file_inode(filp); in unix_get_socket() 107 if (S_ISSOCK(inode->i_mode) && !(filp->f_mode & FMODE_PATH)) { in unix_get_socket()
|
/net/bluetooth/rfcomm/ |
D | tty.c | 747 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/ |
D | af_vsock.c | 1861 static long vsock_dev_do_ioctl(struct file *filp, in vsock_dev_do_ioctl() argument 1881 static long vsock_dev_ioctl(struct file *filp, in vsock_dev_ioctl() argument 1884 return vsock_dev_do_ioctl(filp, cmd, (void __user *)arg); in vsock_dev_ioctl() 1888 static long vsock_dev_compat_ioctl(struct file *filp, in vsock_dev_compat_ioctl() argument 1891 return vsock_dev_do_ioctl(filp, cmd, compat_ptr(arg)); in vsock_dev_compat_ioctl()
|
/net/ |
D | socket.c | 131 static int sock_fasync(int fd, struct file *filp, int on); 1189 static int sock_close(struct inode *inode, struct file *filp) in sock_close() argument 1206 static int sock_fasync(int fd, struct file *filp, int on) in sock_fasync() argument 1208 struct socket *sock = filp->private_data; in sock_fasync() 1217 fasync_helper(fd, filp, on, &wq->fasync_list); in sock_fasync()
|
/net/bridge/ |
D | br_sysfs_br.c | 806 static ssize_t brforward_read(struct file *filp, struct kobject *kobj, in brforward_read() argument
|
/net/9p/ |
D | trans_fd.c | 547 p9_pollwait(struct file *filp, wait_queue_head_t *wait_address, poll_table *p) in p9_pollwait() argument
|
/net/sunrpc/auth_gss/ |
D | auth_gss.c | 678 gss_pipe_downcall(struct file *filp, const char __user *src, size_t mlen) in gss_pipe_downcall() argument 683 struct rpc_pipe *pipe = RPC_I(file_inode(filp))->pipe; in gss_pipe_downcall()
|
/net/netlink/ |
D | af_netlink.c | 1036 struct sock *netlink_getsockbyfilp(struct file *filp) in netlink_getsockbyfilp() argument 1038 struct inode *inode = file_inode(filp); in netlink_getsockbyfilp()
|