Lines Matching full:socket

4  *   Functions in this module are implementation of socket based llc
89 * @sk: Socket which contains a valid llc socket type.
93 * operation the user would like to perform and the type of socket.
109 * @sk: Connection the socket is using.
133 static void llc_ui_sk_init(struct socket *sock, struct sock *sk) in llc_ui_sk_init()
148 * llc_ui_create - alloc and init a new llc_ui socket
150 * @sock: Socket to initialize and attach allocated sk to.
154 * Allocate and initialize a new llc_ui socket, validate the user wants a
155 * socket type we have available.
158 static int llc_ui_create(struct net *net, struct socket *sock, int protocol, in llc_ui_create()
182 * llc_ui_release - shutdown socket
183 * @sock: Socket to release.
185 * Shutdown and deallocate an existing socket.
187 static int llc_ui_release(struct socket *sock) in llc_ui_release()
243 * llc_ui_autobind - automatically bind a socket to a sap
244 * @sock: socket to bind
252 static int llc_ui_autobind(struct socket *sock, struct sockaddr_llc *addr) in llc_ui_autobind()
291 * llc_ui_bind - bind a socket to a specific address.
292 * @sock: Socket to bind an address to.
293 * @uaddr: Address the user wants the socket bound to.
296 * Bind a socket to a specific address. For llc a user is able to bind to
304 static int llc_ui_bind(struct socket *sock, struct sockaddr *uaddr, int addrlen) in llc_ui_bind()
388 * llc_ui_shutdown - shutdown a connect llc2 socket.
389 * @sock: Socket to shutdown.
390 * @how: What part of the socket to shutdown.
392 * Shutdown a connected llc2 socket. Currently this function only supports
398 static int llc_ui_shutdown(struct socket *sock, int how) in llc_ui_shutdown()
421 * @sock: Socket which will be connected to the remote destination.
433 static int llc_ui_connect(struct socket *sock, struct sockaddr *uaddr, in llc_ui_connect()
499 * llc_ui_listen - allow a normal socket to accept incoming connections
500 * @sock: Socket to allow incoming connections on.
503 * Allow a normal socket to accept incoming connections.
506 static int llc_ui_listen(struct socket *sock, int backlog) in llc_ui_listen()
639 * @sock: Socket which connections arrive on.
640 * @newsock: Socket to move incoming connection to.
646 static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags) in llc_ui_accept()
676 /* attach connection to a new socket. */ in llc_ui_accept()
686 /* put original socket back into a clean listen state. */ in llc_ui_accept()
699 * llc_ui_recvmsg - copy received data to the socket user.
700 * @sock: Socket to copy data from.
705 * Copy received data to the socket user.
708 static int llc_ui_recvmsg(struct kiocb *iocb, struct socket *sock, in llc_ui_recvmsg()
789 * from never connected socket. in llc_ui_recvmsg()
875 * llc_ui_sendmsg - Transmit data provided by the socket user.
876 * @sock: Socket to transmit data from.
880 * Transmit data provided by the socket user.
883 static int llc_ui_sendmsg(struct kiocb *iocb, struct socket *sock, in llc_ui_sendmsg()
960 * llc_ui_getname - return the address info of a socket
961 * @sock: Socket to get address of.
966 * Return the address information of a socket.
968 static int llc_ui_getname(struct socket *sock, struct sockaddr *uaddr, in llc_ui_getname()
1012 * @sock: Socket to get/set info
1018 static int llc_ui_ioctl(struct socket *sock, unsigned int cmd, in llc_ui_ioctl()
1026 * @sock: Socket to set options on.
1027 * @level: Socket level user is requesting operations on.
1034 static int llc_ui_setsockopt(struct socket *sock, int level, int optname, in llc_ui_setsockopt()
1107 * llc_ui_getsockopt - get connection specific socket info
1108 * @sock: Socket to get information from.
1109 * @level: Socket level user is requesting operations on.
1114 * Get connection specific socket information.
1116 static int llc_ui_getsockopt(struct socket *sock, int level, int optname, in llc_ui_getsockopt()