Home
last modified time | relevance | path

Searched refs:nxb (Results 1 – 12 of 12) sorted by relevance

/xnu-10063.141.1/bsd/skywalk/nexus/flowswitch/
H A Dfsw_flow.c132 struct nxbind nxb; in fsw_flow_add() local
143 bzero(&nxb, sizeof(nxb)); in fsw_flow_add()
144 nxb.nxb_flags |= NXBF_MATCH_UNIQUEID; in fsw_flow_add()
145 nxb.nxb_uniqueid = proc_uniqueid(p); in fsw_flow_add()
146 nxb.nxb_pid = pid; in fsw_flow_add()
147 nxb.nxb_flags |= NXBF_MATCH_KEY; in fsw_flow_add()
148 nxb.nxb_key_len = sizeof(uuid_key); in fsw_flow_add()
149 nxb.nxb_key = sk_alloc_data(nxb.nxb_key_len, in fsw_flow_add()
151 bcopy(uuid_key, nxb.nxb_key, nxb.nxb_key_len); in fsw_flow_add()
162 &nx_port, &nxb, NULL)) != 0) { in fsw_flow_add()
[all …]
H A Dnx_flowswitch.c691 struct nxbind *nxb, void *info) in nx_fsw_dom_bind_port() argument
699 ASSERT(nxb != NULL); in nx_fsw_dom_bind_port()
722 error = nx_port_bind(nx, port, nxb); in nx_fsw_dom_bind_port()
727 error = nx_port_bind(nx, port, nxb); in nx_fsw_dom_bind_port()
765 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_fsw_dom_connect() argument
789 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_fsw_dom_connect()
907 struct chreq *chr, struct nxbind *nxb, struct proc *p, in nx_fsw_na_find() argument
942 error = fsw_attach_vp(nx, ch, chr, nxb, p, &vpna); in nx_fsw_na_find()
H A Dfsw.c114 struct chreq *chr, struct nxbind *nxb, struct proc *p, in fsw_attach_vp() argument
128 err = fsw_port_alloc(fsw, nxb, vpna, chr->cr_port, p, FALSE, FALSE); in fsw_attach_vp()
151 err = fsw_port_alloc(fsw, nxb, vpna, (*vpna)->vpna_nx_port, p, FALSE, FALSE); in fsw_attach_vp()
1395 const struct nxbind *nxb) in fsw_port_ctor() argument
1397 #pragma unused(nxb) in fsw_port_ctor()
1401 ASSERT(nxb == NULL || !(nxb->nxb_flags & NXBF_MATCH_UNIQUEID) || in fsw_port_ctor()
1402 vpna->vpna_pid == nxb->nxb_pid); in fsw_port_ctor()
1498 fsw_port_alloc__(struct nx_flowswitch *fsw, struct nxbind *nxb, in fsw_port_alloc__() argument
1507 error = nx_port_alloc(nx, nx_port, nxb, (struct nexus_adapter **)vpna, p); in fsw_port_alloc__()
1513 if (nxb != NULL && (nxb->nxb_flags & NXBF_MATCH_UNIQUEID)) { in fsw_port_alloc__()
[all …]
H A Dfsw_var.h92 struct chreq *chr, struct nxbind *nxb, struct proc *p,
100 extern int fsw_port_alloc(struct nx_flowswitch *fsw, struct nxbind *nxb,
/xnu-10063.141.1/bsd/skywalk/nexus/kpipe/
H A Dnx_kernel_pipe.c259 struct nxbind *nxb = NULL; in nx_kpipe_dom_bind_port() local
272 nxb = nxb_alloc(Z_WAITOK); in nx_kpipe_dom_bind_port()
273 nxb_move(nxb0, nxb); in nx_kpipe_dom_bind_port()
274 nx->nx_arg = nxb; in nx_kpipe_dom_bind_port()
290 struct nxbind *nxb = NULL; in nx_kpipe_dom_unbind_port() local
297 if ((nxb = nx->nx_arg) == NULL) { in nx_kpipe_dom_unbind_port()
302 nxb_free(nxb); in nx_kpipe_dom_unbind_port()
317 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_kpipe_dom_connect() argument
364 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_kpipe_dom_connect()
554 struct nxbind *nxb; in nx_kpipe_prov_nx_dtor() local
[all …]
/xnu-10063.141.1/bsd/skywalk/nexus/
H A Dnexus.c630 struct nxbind *nxb = NULL; in nxctl_nexus_bind() local
747 nxb = nxb_alloc(Z_WAITOK); in nxctl_nexus_bind()
750 nxb->nxb_flags |= NXBF_MATCH_UNIQUEID; in nxctl_nexus_bind()
751 nxb->nxb_uniqueid = p_uniqueid; in nxctl_nexus_bind()
752 nxb->nxb_pid = p_pid; in nxctl_nexus_bind()
755 nxb->nxb_flags |= NXBF_MATCH_EXEC_UUID; in nxctl_nexus_bind()
757 uuid_copy(nxb->nxb_exec_uuid, p_uuid); in nxctl_nexus_bind()
760 nxb->nxb_flags |= NXBF_MATCH_KEY; in nxctl_nexus_bind()
762 nxb->nxb_key = key; in nxctl_nexus_bind()
766 nxb->nxb_key_len = nbr.nb_key_len; in nxctl_nexus_bind()
[all …]
H A Dnexus_adapter.c2567 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in na_connect() argument
2580 err = na_find(ch, nx, chr, ch0, nxb, p, &na, TRUE /* create */); in na_connect()
2913 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p, in na_find() argument
2938 error = nx_monitor_na_find(nx, ch, chr, ch0, nxb, p, na, create); in na_find()
2945 error = nx_upipe_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
2952 error = nx_kpipe_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
2959 error = nx_fsw_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
2965 error = nx_netif_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
/xnu-10063.141.1/bsd/skywalk/nexus/netif/
H A Dnx_netif_netagent.c269 struct nxbind nxb; in nx_netif_netagent_flow_bind() local
289 bzero(&nxb, sizeof(nxb)); in nx_netif_netagent_flow_bind()
290 nxb.nxb_flags |= NXBF_MATCH_UNIQUEID; in nx_netif_netagent_flow_bind()
291 nxb.nxb_uniqueid = proc_uniqueid(p); in nx_netif_netagent_flow_bind()
292 nxb.nxb_pid = pid; in nx_netif_netagent_flow_bind()
293 nxb.nxb_flags |= NXBF_MATCH_KEY; in nx_netif_netagent_flow_bind()
294 nxb.nxb_key_len = sizeof(uuid_key); in nx_netif_netagent_flow_bind()
295 nxb.nxb_key = sk_alloc_data(nxb.nxb_key_len, Z_WAITOK | Z_NOFAIL, in nx_netif_netagent_flow_bind()
297 bcopy(uuid_key, nxb.nxb_key, nxb.nxb_key_len); in nx_netif_netagent_flow_bind()
301 sk_free_data(nxb.nxb_key, nxb.nxb_key_len); in nx_netif_netagent_flow_bind()
[all …]
H A Dnx_netif.c1073 struct nxbind *nxb, void *info) in nx_netif_dom_bind_port() argument
1080 ASSERT(nxb != NULL); in nx_netif_dom_bind_port()
1100 error = nx_port_bind_info(nx, port, nxb, info); in nx_netif_dom_bind_port()
1106 error = nx_port_bind_info(nx, port, nxb, info); in nx_netif_dom_bind_port()
1144 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_netif_dom_connect() argument
1198 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_netif_dom_connect()
3084 struct chreq *chr, struct nxbind *nxb, struct proc *p, argument
3143 (anon || nif->nif_dev_nxb == NULL || nxb == NULL ||
3144 !nxb_is_equal(nif->nif_dev_nxb, nxb))))) {
3175 err = nx_port_alloc(nx, nx_port, nxb, &na, p);
[all …]
/xnu-10063.141.1/bsd/skywalk/nexus/upipe/
H A Dnx_user_pipe.c438 struct nxbind *nxb = NULL; in nx_upipe_dom_bind_port() local
455 nxb = nxb_alloc(Z_WAITOK); in nx_upipe_dom_bind_port()
456 nxb_move(nxb0, nxb); in nx_upipe_dom_bind_port()
458 u->nup_cli_nxb = nxb; in nx_upipe_dom_bind_port()
460 u->nup_srv_nxb = nxb; in nx_upipe_dom_bind_port()
478 struct nxbind *nxb = NULL; in nx_upipe_dom_unbind_port() local
495 nxb = u->nup_cli_nxb; in nx_upipe_dom_unbind_port()
498 nxb = u->nup_srv_nxb; in nx_upipe_dom_unbind_port()
501 nxb_free(nxb); in nx_upipe_dom_unbind_port()
516 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_upipe_dom_connect() argument
[all …]
/xnu-10063.141.1/bsd/skywalk/channel/
H A Dchannel.c1529 struct nxbind *nxb = NULL; in ch_open() local
1600 nxb = nxb_alloc(Z_WAITOK); in ch_open()
1601 nxb->nxb_flags |= NXBF_MATCH_UNIQUEID; in ch_open()
1602 nxb->nxb_uniqueid = proc_uniqueid(p); in ch_open()
1603 nxb->nxb_pid = proc_pid(p); in ch_open()
1604 nxb->nxb_flags |= NXBF_MATCH_EXEC_UUID; in ch_open()
1605 uuid_copy(nxb->nxb_exec_uuid, p_uuid); in ch_open()
1607 nxb->nxb_flags |= NXBF_MATCH_KEY; in ch_open()
1608 nxb->nxb_key_len = init->ci_key_len; in ch_open()
1609 nxb->nxb_key = key; in ch_open()
[all …]
/xnu-10063.141.1/bsd/skywalk/nexus/monitor/
H A Dnx_monitor.c333 struct nxbind *nxb, void *info) in nx_mon_dom_bind_port() argument
335 #pragma unused(nx, nx_port, nxb, info) in nx_mon_dom_bind_port()
355 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_mon_dom_connect() argument
357 #pragma unused(nxdom_prov, nx, ch, chr, ch0, nxb, p) in nx_mon_dom_connect()
1420 struct chreq *chr, struct kern_channel *ch0, struct nxbind *nxb, in nx_monitor_na_find() argument
1486 error = na_find(ch, nx, &pchr, ch0, nxb, p, &pna, create); in nx_monitor_na_find()