Home
last modified time | relevance | path

Searched refs:serv (Results 1 – 20 of 20) sorted by relevance

/linux-6.6.21/fs/nfs/
Dcallback.c34 struct svc_serv *serv; member
41 static int nfs4_callback_up_net(struct svc_serv *serv, struct net *net) in nfs4_callback_up_net() argument
47 ret = svc_xprt_create(serv, "tcp", net, PF_INET, in nfs4_callback_up_net()
56 ret = svc_xprt_create(serv, "tcp", net, PF_INET6, in nfs4_callback_up_net()
96 struct svc_serv *serv = rqstp->rq_server; in nfs41_callback_svc() local
104 prepare_to_wait(&serv->sv_cb_waitq, &wq, TASK_IDLE); in nfs41_callback_svc()
105 spin_lock_bh(&serv->sv_cb_lock); in nfs41_callback_svc()
106 if (!list_empty(&serv->sv_cb_list)) { in nfs41_callback_svc()
107 req = list_first_entry(&serv->sv_cb_list, in nfs41_callback_svc()
110 spin_unlock_bh(&serv->sv_cb_lock); in nfs41_callback_svc()
[all …]
/linux-6.6.21/net/sunrpc/
Dsvc.c38 static void svc_unregister(const struct svc_serv *serv, struct net *net);
370 struct svc_pool *svc_pool_for_cpu(struct svc_serv *serv) in svc_pool_for_cpu() argument
376 if (serv->sv_nrpools <= 1) in svc_pool_for_cpu()
377 return serv->sv_pools; in svc_pool_for_cpu()
388 return &serv->sv_pools[pidx % serv->sv_nrpools]; in svc_pool_for_cpu()
391 int svc_rpcb_setup(struct svc_serv *serv, struct net *net) in svc_rpcb_setup() argument
400 svc_unregister(serv, net); in svc_rpcb_setup()
405 void svc_rpcb_cleanup(struct svc_serv *serv, struct net *net) in svc_rpcb_cleanup() argument
407 svc_unregister(serv, net); in svc_rpcb_cleanup()
412 static int svc_uses_rpcbind(struct svc_serv *serv) in svc_uses_rpcbind() argument
[all …]
Dsvc_xprt.c196 struct svc_xprt *xprt, struct svc_serv *serv) in svc_xprt_init() argument
202 xprt->xpt_server = serv; in svc_xprt_init()
216 struct svc_serv *serv, in __svc_xpo_create() argument
253 xprt = xcl->xcl_ops->xpo_create(serv, net, sap, len, flags); in __svc_xpo_create()
255 trace_svc_xprt_create_err(serv->sv_program->pg_name, in __svc_xpo_create()
288 void svc_add_new_perm_xprt(struct svc_serv *serv, struct svc_xprt *new) in svc_add_new_perm_xprt() argument
291 spin_lock_bh(&serv->sv_lock); in svc_add_new_perm_xprt()
292 list_add(&new->xpt_list, &serv->sv_permsocks); in svc_add_new_perm_xprt()
293 spin_unlock_bh(&serv->sv_lock); in svc_add_new_perm_xprt()
297 static int _svc_xprt_create(struct svc_serv *serv, const char *xprt_name, in _svc_xprt_create() argument
[all …]
Dsvcsock.c566 struct svc_serv *serv = svsk->sk_xprt.xpt_server; in svc_udp_recvfrom() local
591 svc_sock_setbufsize(svsk, serv->sv_nrthreads + 3); in svc_udp_recvfrom()
650 if (serv->sv_stats) in svc_udp_recvfrom()
651 serv->sv_stats->netudpcnt++; in svc_udp_recvfrom()
742 struct svc_serv *serv = xprt->xpt_server; in svc_udp_has_wspace() local
750 required = atomic_read(&svsk->sk_xprt.xpt_reserved) + serv->sv_max_mesg; in svc_udp_has_wspace()
767 static struct svc_xprt *svc_udp_create(struct svc_serv *serv, in svc_udp_create() argument
772 return svc_create_socket(serv, IPPROTO_UDP, net, sa, salen, flags); in svc_udp_create()
796 static void svc_udp_init(struct svc_sock *svsk, struct svc_serv *serv) in svc_udp_init() argument
799 &svsk->sk_xprt, serv); in svc_udp_init()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dsock_destroy.c37 int serv = -1, clien = -1, accept_serv = -1, n; in test_tcp_client() local
39 serv = start_server(AF_INET6, SOCK_STREAM, NULL, 0, 0); in test_tcp_client()
40 if (!ASSERT_GE(serv, 0, "start_server")) in test_tcp_client()
43 clien = connect_to_fd(serv, 0); in test_tcp_client()
47 accept_serv = accept(serv, NULL, NULL); in test_tcp_client()
68 if (serv != -1) in test_tcp_client()
69 close(serv); in test_tcp_client()
74 int serv = -1, clien = -1, accept_serv = -1, n, serv_port; in test_tcp_server() local
76 serv = start_server(AF_INET6, SOCK_STREAM, NULL, 0, 0); in test_tcp_server()
77 if (!ASSERT_GE(serv, 0, "start_server")) in test_tcp_server()
[all …]
/linux-6.6.21/net/caif/
Dcfrfml.c17 #define container_obj(layr) container_of(layr, struct cfrfml, serv.layer)
25 struct cfsrvl serv; member
54 cfsrvl_init(&this->serv, channel_id, dev_info, false); in cfrfml_create()
55 this->serv.release = cfrfml_release; in cfrfml_create()
56 this->serv.layer.receive = cfrfml_receive; in cfrfml_create()
57 this->serv.layer.transmit = cfrfml_transmit; in cfrfml_create()
65 snprintf(this->serv.layer.name, CAIF_LAYER_NAME_SZ, in cfrfml_create()
68 return &this->serv.layer; in cfrfml_create()
167 err = rfml->serv.layer.up->receive(rfml->serv.layer.up, pkt); in cfrfml_receive()
184 rfml->serv.dev_info.id); in cfrfml_receive()
[all …]
Dcfctrl.c17 #define container_obj(layr) container_of(layr, struct cfctrl, serv.layer)
42 caif_assert(offsetof(struct cfctrl, serv.layer) == 0); in cfctrl_create()
45 cfsrvl_init(&this->serv, 0, &dev_info, false); in cfctrl_create()
48 this->serv.layer.receive = cfctrl_recv; in cfctrl_create()
49 sprintf(this->serv.layer.name, "ctrl"); in cfctrl_create()
50 this->serv.layer.ctrlcmd = cfctrl_ctrlcmd; in cfctrl_create()
57 return &this->serv.layer; in cfctrl_create()
172 info->channel_id = cfctrl->serv.layer.id; in init_info()
173 info->dev_info = &cfctrl->serv.dev_info; in init_info()
180 struct cflayer *dn = cfctrl->serv.layer.dn; in cfctrl_enum_req()
[all …]
Dcfcnfg.c64 enum cfctrl_srv serv, u8 phyid,
372 cfcnfg_linkup_rsp(struct cflayer *layer, u8 channel_id, enum cfctrl_srv serv, in cfcnfg_linkup_rsp() argument
412 switch (serv) { in cfcnfg_linkup_rsp()
/linux-6.6.21/fs/lockd/
Dsvc.c157 static int create_lockd_listener(struct svc_serv *serv, const char *name, in create_lockd_listener() argument
164 xprt = svc_find_xprt(serv, name, net, family, 0); in create_lockd_listener()
166 return svc_xprt_create(serv, name, net, family, port, in create_lockd_listener()
172 static int create_lockd_family(struct svc_serv *serv, struct net *net, in create_lockd_family() argument
177 err = create_lockd_listener(serv, "udp", net, family, nlm_udpport, in create_lockd_family()
182 return create_lockd_listener(serv, "tcp", net, family, nlm_tcpport, in create_lockd_family()
196 static int make_socks(struct svc_serv *serv, struct net *net, in make_socks() argument
202 err = create_lockd_family(serv, net, PF_INET, cred); in make_socks()
206 err = create_lockd_family(serv, net, PF_INET6, cred); in make_socks()
217 svc_xprt_destroy_all(serv, net); in make_socks()
[all …]
/linux-6.6.21/fs/nfsd/
Dnfssvc.c548 struct svc_serv *serv = nn->nfsd_serv; in nfsd_last_thread() local
562 svc_xprt_destroy_all(serv, net); in nfsd_last_thread()
570 svc_rpcb_cleanup(serv, net); in nfsd_last_thread()
642 struct svc_serv *serv; in nfsd_shutdown_threads() local
645 serv = nn->nfsd_serv; in nfsd_shutdown_threads()
646 if (serv == NULL) { in nfsd_shutdown_threads()
651 svc_get(serv); in nfsd_shutdown_threads()
653 svc_set_num_threads(serv, NULL, 0); in nfsd_shutdown_threads()
655 svc_put(serv); in nfsd_shutdown_threads()
668 struct svc_serv *serv; in nfsd_create_serv() local
[all …]
Dnfsctl.c695 struct svc_serv *serv; in __write_ports_addfd() local
706 serv = nn->nfsd_serv; in __write_ports_addfd()
707 err = svc_addsock(serv, net, fd, buf, SIMPLE_TRANSACTION_LIMIT, cred); in __write_ports_addfd()
709 if (err < 0 && !serv->sv_nrthreads && !nn->keep_active) in __write_ports_addfd()
711 else if (err >= 0 && !serv->sv_nrthreads && !xchg(&nn->keep_active, 1)) in __write_ports_addfd()
712 svc_get(serv); in __write_ports_addfd()
714 svc_put(serv); in __write_ports_addfd()
728 struct svc_serv *serv; in __write_ports_addxprt() local
741 serv = nn->nfsd_serv; in __write_ports_addxprt()
742 err = svc_xprt_create(serv, transport, net, in __write_ports_addxprt()
[all …]
/linux-6.6.21/include/linux/sunrpc/
Dsvc.h107 static inline struct svc_serv *svc_get(struct svc_serv *serv) in svc_get() argument
109 kref_get(&serv->sv_refcnt); in svc_get()
110 return serv; in svc_get()
122 static inline void svc_put(struct svc_serv *serv) in svc_put() argument
124 kref_put(&serv->sv_refcnt, svc_destroy); in svc_put()
399 int svc_rpcb_setup(struct svc_serv *serv, struct net *net);
400 void svc_rpcb_cleanup(struct svc_serv *serv, struct net *net);
401 int svc_bind(struct svc_serv *serv, struct net *net);
404 struct svc_rqst *svc_rqst_alloc(struct svc_serv *serv,
414 int svc_pool_stats_open(struct svc_serv *serv, struct file *file);
[all …]
Dbc_xprt.h42 static inline void set_bc_enabled(struct svc_serv *serv) in set_bc_enabled() argument
44 serv->sv_bc_enabled = true; in set_bc_enabled()
63 static inline void set_bc_enabled(struct svc_serv *serv) in set_bc_enabled() argument
Dsvc_xprt.h138 int svc_xprt_create(struct svc_serv *serv, const char *xprt_name,
142 void svc_xprt_destroy_all(struct svc_serv *serv, struct net *net);
150 struct svc_xprt *svc_find_xprt(struct svc_serv *serv, const char *xcl_name,
153 int svc_xprt_names(struct svc_serv *serv, char *buf, const int buflen);
154 void svc_add_new_perm_xprt(struct svc_serv *serv, struct svc_xprt *xprt);
Dsvcsock.h62 void svc_sock_update_bufs(struct svc_serv *serv);
63 int svc_addsock(struct svc_serv *serv, struct net *net,
/linux-6.6.21/include/net/caif/
Dcfctrl.h44 enum cfctrl_srv serv, u8 phyid,
102 struct cfsrvl serv; member
/linux-6.6.21/tools/usb/usbip/libsrc/
Dvhci_driver.c430 char serv[NI_MAXSERV] = "unknown port"; in usbip_vhci_imported_device_dump() local
438 ret = read_record(idev->port, host, sizeof(host), serv, sizeof(serv), in usbip_vhci_imported_device_dump()
456 host, serv, remote_busid); in usbip_vhci_imported_device_dump()
/linux-6.6.21/net/sunrpc/xprtrdma/
Dsvc_rdma_transport.c66 static struct svcxprt_rdma *svc_rdma_create_xprt(struct svc_serv *serv,
68 static struct svc_xprt *svc_rdma_create(struct svc_serv *serv,
125 static struct svcxprt_rdma *svc_rdma_create_xprt(struct svc_serv *serv, in svc_rdma_create_xprt() argument
134 svc_xprt_init(net, &svc_rdma_class, &cma_xprt->sc_xprt, serv); in svc_rdma_create_xprt()
296 static struct svc_xprt *svc_rdma_create(struct svc_serv *serv, in svc_rdma_create() argument
307 cma_xprt = svc_rdma_create_xprt(serv, net, NUMA_NO_NODE); in svc_rdma_create()
/linux-6.6.21/tools/perf/Documentation/
Dexamples.txt97 0.90% git-update-serv /lib64/libc-2.5.so
98 0.73% git-update-serv /lib64/ld-2.5.so
/linux-6.6.21/tools/testing/selftests/net/mptcp/
Dmptcp_connect.c166 char *serv, socklen_t servlen) in xgetnameinfo() argument
169 int err = getnameinfo(addr, addrlen, host, hostlen, serv, servlen, in xgetnameinfo()