Lines Matching refs:sock
113 struct sock *sk;
128 int (*release) (struct socket *sock);
129 int (*bind) (struct socket *sock,
132 int (*connect) (struct socket *sock,
137 int (*accept) (struct socket *sock,
139 int (*getname) (struct socket *sock,
142 unsigned int (*poll) (struct file *file, struct socket *sock,
144 int (*ioctl) (struct socket *sock, unsigned int cmd,
146 int (*compat_ioctl) (struct socket *sock, unsigned int cmd,
148 int (*listen) (struct socket *sock, int len);
149 int (*shutdown) (struct socket *sock, int flags);
150 int (*setsockopt)(struct socket *sock, int level,
152 int (*getsockopt)(struct socket *sock, int level,
154 int (*compat_setsockopt)(struct socket *sock, int level,
156 int (*compat_getsockopt)(struct socket *sock, int level,
158 int (*sendmsg) (struct kiocb *iocb, struct socket *sock,
160 int (*recvmsg) (struct kiocb *iocb, struct socket *sock,
163 int (*mmap) (struct file *file, struct socket *sock,
165 ssize_t (*sendpage) (struct socket *sock, struct page *page,
171 int (*create)(struct socket *sock, int protocol);
192 extern void sock_release(struct socket *sock);
193 extern int sock_sendmsg(struct socket *sock, struct msghdr *msg,
195 extern int sock_recvmsg(struct socket *sock, struct msghdr *msg,
197 extern int sock_map_fd(struct socket *sock);
199 #define sockfd_put(sock) fput(sock->file)
205 extern int kernel_sendmsg(struct socket *sock, struct msghdr *msg,
207 extern int kernel_recvmsg(struct socket *sock, struct msghdr *msg,
240 SOCKCALL_WRAP(name, release, (struct socket *sock), (sock)) \
241 SOCKCALL_WRAP(name, bind, (struct socket *sock, struct sockaddr *uaddr, int addr_len), \
242 (sock, uaddr, addr_len)) \
243 SOCKCALL_WRAP(name, connect, (struct socket *sock, struct sockaddr * uaddr, \
245 (sock, uaddr, addr_len, flags)) \
248 SOCKCALL_WRAP(name, accept, (struct socket *sock, struct socket *newsock, \
249 int flags), (sock, newsock, flags)) \
250 SOCKCALL_WRAP(name, getname, (struct socket *sock, struct sockaddr *uaddr, \
251 int *addr_len, int peer), (sock, uaddr, addr_len, peer)) \
252 SOCKCALL_UWRAP(name, poll, (struct file *file, struct socket *sock, struct poll_table_struct *wait), \
253 (file, sock, wait)) \
254 SOCKCALL_WRAP(name, ioctl, (struct socket *sock, unsigned int cmd, \
255 unsigned long arg), (sock, cmd, arg)) \
256 SOCKCALL_WRAP(name, compat_ioctl, (struct socket *sock, unsigned int cmd, \
257 unsigned long arg), (sock, cmd, arg)) \
258 SOCKCALL_WRAP(name, listen, (struct socket *sock, int len), (sock, len)) \
259 SOCKCALL_WRAP(name, shutdown, (struct socket *sock, int flags), (sock, flags)) \
260 SOCKCALL_WRAP(name, setsockopt, (struct socket *sock, int level, int optname, \
261 char __user *optval, int optlen), (sock, level, optname, optval, optlen)) \
262 SOCKCALL_WRAP(name, getsockopt, (struct socket *sock, int level, int optname, \
263 char __user *optval, int __user *optlen), (sock, level, optname, optval, optlen)) \
264 SOCKCALL_WRAP(name, sendmsg, (struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t len), \
265 (iocb, sock, m, len)) \
266 SOCKCALL_WRAP(name, recvmsg, (struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t len, int flags), \
267 (iocb, sock, m, len, flags)) \
268 SOCKCALL_WRAP(name, mmap, (struct file *file, struct socket *sock, struct vm_area_struct *vma), \
269 (file, sock, vma)) \