Lines Matching refs:lsock
458 struct socket *newsock, *lsock; in tipc_topsrv_accept() local
468 lsock = srv->listener; in tipc_topsrv_accept()
472 ret = kernel_accept(lsock, &newsock, O_NONBLOCK); in tipc_topsrv_accept()
513 struct socket *lsock = NULL; in tipc_topsrv_create_listener() local
518 rc = sock_create_kern(srv->net, AF_TIPC, SOCK_SEQPACKET, 0, &lsock); in tipc_topsrv_create_listener()
522 srv->listener = lsock; in tipc_topsrv_create_listener()
523 sk = lsock->sk; in tipc_topsrv_create_listener()
542 rc = tipc_sk_bind(lsock, (struct sockaddr *)&saddr, sizeof(saddr)); in tipc_topsrv_create_listener()
545 rc = kernel_listen(lsock, 0); in tipc_topsrv_create_listener()
564 module_put(lsock->ops->owner); in tipc_topsrv_create_listener()
569 sock_release(lsock); in tipc_topsrv_create_listener()
699 struct socket *lsock = srv->listener; in tipc_topsrv_stop() local
712 __module_get(lsock->ops->owner); in tipc_topsrv_stop()
713 __module_get(lsock->sk->sk_prot_creator->owner); in tipc_topsrv_stop()
718 sock_release(lsock); in tipc_topsrv_stop()