Searched defs:filp (Results 1 - 13 of 13) sorted by relevance

/net/netfilter/
H A Dxt_owner.c35 const struct file *filp; local
46 filp = skb->sk->sk_socket->file;
47 if (filp == NULL)
54 if ((uid_gte(filp->f_cred->fsuid, uid_min) &&
55 uid_lte(filp->f_cred->fsuid, uid_max)) ^
63 if ((gid_gte(filp->f_cred->fsgid, gid_min) &&
64 gid_lte(filp->f_cred->fsgid, gid_max)) ^
H A Dxt_qtaguid.c1656 const struct file *filp; local
1724 filp = sk->sk_socket ? sk->sk_socket->file : NULL;
1725 MT_DEBUG("qtaguid[%d]: filp...uid=%u\n",
1726 par->hooknum, filp ? from_kuid(&init_user_ns, filp->f_cred->fsuid) : -1);
1752 filp = sk->sk_socket->file;
1753 if (filp == NULL) {
1754 MT_DEBUG("qtaguid[%d]: leaving filp=NULL\n", par->hooknum);
1761 sock_uid = filp->f_cred->fsuid;
1779 if ((uid_gte(filp
[all...]
/net/unix/
H A Dgarbage.c99 struct sock *unix_get_socket(struct file *filp) argument
102 struct inode *inode = file_inode(filp);
107 if (S_ISSOCK(inode->i_mode) && !(filp->f_mode & FMODE_PATH)) {
/net/irda/ircomm/
H A Dircomm_tty.c55 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);
270 * Function ircomm_block_til_ready (self, filp)
276 struct tty_struct *tty, struct file *filp)
295 if (filp->f_flags & O_NONBLOCK) {
333 if (tty_hung_up_p(filp) ||
367 if (!tty_hung_up_p(filp))
431 * Function ircomm_tty_open (tty, filp)
437 static int ircomm_tty_open(struct tty_struct *tty, struct file *filp) argument
502 ret = ircomm_tty_block_til_ready(self, tty, filp);
275 ircomm_tty_block_til_ready(struct ircomm_tty_cb *self, struct tty_struct *tty, struct file *filp) argument
519 ircomm_tty_close(struct tty_struct *tty, struct file *filp) argument
[all...]
/net/bluetooth/rfcomm/
H A Dtty.c747 static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp) argument
757 err = tty_port_open(&dev->port, tty, filp);
773 static void rfcomm_tty_close(struct tty_struct *tty, struct file *filp) argument
780 tty_port_close(&dev->port, tty, filp);
/net/bridge/
H A Dbr_sysfs_br.c806 static ssize_t brforward_read(struct file *filp, struct kobject *kobj, argument
/net/9p/
H A Dtrans_fd.c539 * @filp: file pointer being polled
547 p9_pollwait(struct file *filp, wait_queue_head_t *wait_address, poll_table *p) argument
/net/vmw_vsock/
H A Daf_vsock.c1880 static long vsock_dev_do_ioctl(struct file *filp, argument
1900 static long vsock_dev_ioctl(struct file *filp, argument
1903 return vsock_dev_do_ioctl(filp, cmd, (void __user *)arg);
1907 static long vsock_dev_compat_ioctl(struct file *filp, argument
1910 return vsock_dev_do_ioctl(filp, cmd, compat_ptr(arg));
/net/sunrpc/auth_gss/
H A Dauth_gss.c674 gss_pipe_downcall(struct file *filp, const char __user *src, size_t mlen) argument
679 struct rpc_pipe *pipe = RPC_I(file_inode(filp))->pipe;
/net/sunrpc/
H A Dcache.c755 static ssize_t cache_read(struct file *filp, char __user *buf, size_t count, argument
758 struct cache_reader *rp = filp->private_data;
760 struct inode *inode = file_inode(filp);
893 static ssize_t cache_write(struct file *filp, const char __user *buf, argument
897 struct address_space *mapping = filp->f_mapping;
898 struct inode *inode = file_inode(filp);
913 static unsigned int cache_poll(struct file *filp, poll_table *wait, argument
917 struct cache_reader *rp = filp->private_data;
920 poll_wait(filp, &queue_wait, wait);
940 static int cache_ioctl(struct inode *ino, struct file *filp, argument
969 cache_open(struct inode *inode, struct file *filp, struct cache_detail *cd) argument
994 cache_release(struct inode *inode, struct file *filp, struct cache_detail *cd) argument
1471 cache_read_procfs(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
1479 cache_write_procfs(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument
1487 cache_poll_procfs(struct file *filp, poll_table *wait) argument
1494 cache_ioctl_procfs(struct file *filp, unsigned int cmd, unsigned long arg) argument
1503 cache_open_procfs(struct inode *inode, struct file *filp) argument
1510 cache_release_procfs(struct inode *inode, struct file *filp) argument
1528 content_open_procfs(struct inode *inode, struct file *filp) argument
1535 content_release_procfs(struct inode *inode, struct file *filp) argument
1549 open_flush_procfs(struct inode *inode, struct file *filp) argument
1556 release_flush_procfs(struct inode *inode, struct file *filp) argument
1563 read_flush_procfs(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
1571 write_flush_procfs(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument
1703 cache_read_pipefs(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
1711 cache_write_pipefs(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument
1719 cache_poll_pipefs(struct file *filp, poll_table *wait) argument
1726 cache_ioctl_pipefs(struct file *filp, unsigned int cmd, unsigned long arg) argument
1735 cache_open_pipefs(struct inode *inode, struct file *filp) argument
1742 cache_release_pipefs(struct inode *inode, struct file *filp) argument
1760 content_open_pipefs(struct inode *inode, struct file *filp) argument
1767 content_release_pipefs(struct inode *inode, struct file *filp) argument
1781 open_flush_pipefs(struct inode *inode, struct file *filp) argument
1788 release_flush_pipefs(struct inode *inode, struct file *filp) argument
1795 read_flush_pipefs(struct file *filp, char __user *buf, size_t count, loff_t *ppos) argument
1803 write_flush_pipefs(struct file *filp, const char __user *buf, size_t count, loff_t *ppos) argument
[all...]
H A Drpc_pipe.c102 ssize_t rpc_pipe_generic_upcall(struct file *filp, struct rpc_pipe_msg *msg, argument
218 rpc_pipe_open(struct inode *inode, struct file *filp) argument
234 if (filp->f_mode & FMODE_READ)
236 if (filp->f_mode & FMODE_WRITE)
245 rpc_pipe_release(struct inode *inode, struct file *filp) argument
255 msg = filp->private_data;
263 if (filp->f_mode & FMODE_WRITE)
265 if (filp->f_mode & FMODE_READ) {
286 rpc_pipe_read(struct file *filp, char __user *buf, size_t len, loff_t *offset) argument
288 struct inode *inode = file_inode(filp);
330 rpc_pipe_write(struct file *filp, const char __user *buf, size_t len, loff_t *offset) argument
344 rpc_pipe_poll(struct file *filp, struct poll_table_struct *wait) argument
362 rpc_pipe_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
1269 dummy_downcall(struct file *filp, const char __user *src, size_t len) argument
[all...]
/net/netlink/
H A Daf_netlink.c1590 struct sock *netlink_getsockbyfilp(struct file *filp) argument
1592 struct inode *inode = file_inode(filp);
/net/
H A Dsocket.c131 static int sock_fasync(int fd, struct file *filp, int on);
1178 static int sock_close(struct inode *inode, struct file *filp) argument
1195 static int sock_fasync(int fd, struct file *filp, int on) argument
1197 struct socket *sock = filp->private_data;
1206 fasync_helper(fd, filp, on, &wq->fasync_list);

Completed in 236 milliseconds