Home
last modified time | relevance | path

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

/xnu-8019.80.24/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.c643 struct nxbind *nxb, void *info) in nx_fsw_dom_bind_port() argument
651 ASSERT(nxb != NULL); in nx_fsw_dom_bind_port()
673 error = nx_port_bind(nx, port, nxb); in nx_fsw_dom_bind_port()
678 error = nx_port_bind(nx, port, nxb); in nx_fsw_dom_bind_port()
716 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_fsw_dom_connect() argument
762 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_fsw_dom_connect()
881 struct chreq *chr, struct nxbind *nxb, struct proc *p, in nx_fsw_na_find() argument
916 error = fsw_attach_vp(nx, ch, chr, nxb, p, &vpna); in nx_fsw_na_find()
H A Dfsw.c104 struct chreq *chr, struct nxbind *nxb, struct proc *p, in fsw_attach_vp() argument
118 err = fsw_port_alloc(fsw, nxb, vpna, chr->cr_port, p, FALSE, FALSE); in fsw_attach_vp()
149 err = fsw_port_alloc(fsw, nxb, vpna, (*vpna)->vpna_nx_port, p, FALSE, FALSE); in fsw_attach_vp()
1222 const struct nxbind *nxb) in fsw_port_ctor() argument
1224 #pragma unused(nxb) in fsw_port_ctor()
1228 ASSERT(nxb == NULL || !(nxb->nxb_flags & NXBF_MATCH_UNIQUEID) || in fsw_port_ctor()
1229 vpna->vpna_pid == nxb->nxb_pid); in fsw_port_ctor()
1325 fsw_port_alloc__(struct nx_flowswitch *fsw, struct nxbind *nxb, in fsw_port_alloc__() argument
1334 error = nx_port_alloc(nx, nx_port, nxb, (struct nexus_adapter **)vpna, p); in fsw_port_alloc__()
1340 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-8019.80.24/bsd/skywalk/nexus/kpipe/
H A Dnx_kernel_pipe.c255 struct nxbind *nxb = NULL; in nx_kpipe_dom_bind_port() local
268 nxb = nxb_alloc(Z_WAITOK); in nx_kpipe_dom_bind_port()
269 nxb_move(nxb0, nxb); in nx_kpipe_dom_bind_port()
270 nx->nx_arg = nxb; in nx_kpipe_dom_bind_port()
286 struct nxbind *nxb = NULL; in nx_kpipe_dom_unbind_port() local
293 if ((nxb = nx->nx_arg) == NULL) { in nx_kpipe_dom_unbind_port()
298 nxb_free(nxb); in nx_kpipe_dom_unbind_port()
313 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_kpipe_dom_connect() argument
360 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_kpipe_dom_connect()
555 struct nxbind *nxb; in nx_kpipe_prov_nx_dtor() local
[all …]
/xnu-8019.80.24/bsd/skywalk/nexus/
H A Dnexus.c652 struct nxbind *nxb = NULL; in nxctl_nexus_bind() local
768 nxb = nxb_alloc(Z_WAITOK); in nxctl_nexus_bind()
771 nxb->nxb_flags |= NXBF_MATCH_UNIQUEID; in nxctl_nexus_bind()
772 nxb->nxb_uniqueid = p_uniqueid; in nxctl_nexus_bind()
773 nxb->nxb_pid = p_pid; in nxctl_nexus_bind()
776 nxb->nxb_flags |= NXBF_MATCH_EXEC_UUID; in nxctl_nexus_bind()
778 uuid_copy(nxb->nxb_exec_uuid, p_uuid); in nxctl_nexus_bind()
781 nxb->nxb_flags |= NXBF_MATCH_KEY; in nxctl_nexus_bind()
783 nxb->nxb_key = key; in nxctl_nexus_bind()
787 nxb->nxb_key_len = nbr.nb_key_len; in nxctl_nexus_bind()
[all …]
H A Dnexus_adapter.c2558 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in na_connect() argument
2571 err = na_find(ch, nx, chr, ch0, nxb, p, &na, TRUE /* create */); in na_connect()
2906 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p, in na_find() argument
2931 error = nx_monitor_na_find(nx, ch, chr, ch0, nxb, p, na, create); in na_find()
2938 error = nx_upipe_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
2945 error = nx_kpipe_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
2952 error = nx_fsw_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
2958 error = nx_netif_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
/xnu-8019.80.24/bsd/skywalk/nexus/netif/
H A Dnx_netif_netagent.c304 struct nxbind nxb; in nx_netif_netagent_flow_bind() local
324 bzero(&nxb, sizeof(nxb)); in nx_netif_netagent_flow_bind()
325 nxb.nxb_flags |= NXBF_MATCH_UNIQUEID; in nx_netif_netagent_flow_bind()
326 nxb.nxb_uniqueid = proc_uniqueid(p); in nx_netif_netagent_flow_bind()
327 nxb.nxb_pid = pid; in nx_netif_netagent_flow_bind()
328 nxb.nxb_flags |= NXBF_MATCH_KEY; in nx_netif_netagent_flow_bind()
329 nxb.nxb_key_len = sizeof(uuid_key); in nx_netif_netagent_flow_bind()
330 nxb.nxb_key = sk_alloc_data(nxb.nxb_key_len, Z_WAITOK | Z_NOFAIL, in nx_netif_netagent_flow_bind()
332 bcopy(uuid_key, nxb.nxb_key, nxb.nxb_key_len); in nx_netif_netagent_flow_bind()
336 sk_free_data(nxb.nxb_key, nxb.nxb_key_len); in nx_netif_netagent_flow_bind()
[all …]
H A Dnx_netif.c1050 struct nxbind *nxb, void *info) in nx_netif_dom_bind_port() argument
1057 ASSERT(nxb != NULL); in nx_netif_dom_bind_port()
1076 error = nx_port_bind_info(nx, port, nxb, info); in nx_netif_dom_bind_port()
1082 error = nx_port_bind_info(nx, port, nxb, info); in nx_netif_dom_bind_port()
1120 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_netif_dom_connect() argument
1174 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_netif_dom_connect()
2755 struct chreq *chr, struct nxbind *nxb, struct proc *p, argument
2814 (anon || nif->nif_dev_nxb == NULL || nxb == NULL ||
2815 !nxb_is_equal(nif->nif_dev_nxb, nxb))))) {
2846 err = nx_port_alloc(nx, nx_port, nxb, &na, p);
[all …]
/xnu-8019.80.24/bsd/skywalk/nexus/upipe/
H A Dnx_user_pipe.c451 struct nxbind *nxb = NULL; in nx_upipe_dom_bind_port() local
468 nxb = nxb_alloc(Z_WAITOK); in nx_upipe_dom_bind_port()
469 nxb_move(nxb0, nxb); in nx_upipe_dom_bind_port()
471 u->nup_cli_nxb = nxb; in nx_upipe_dom_bind_port()
473 u->nup_srv_nxb = nxb; in nx_upipe_dom_bind_port()
491 struct nxbind *nxb = NULL; in nx_upipe_dom_unbind_port() local
508 nxb = u->nup_cli_nxb; in nx_upipe_dom_unbind_port()
511 nxb = u->nup_srv_nxb; in nx_upipe_dom_unbind_port()
514 nxb_free(nxb); in nx_upipe_dom_unbind_port()
529 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_upipe_dom_connect() argument
[all …]
/xnu-8019.80.24/bsd/skywalk/channel/
H A Dchannel.c1540 struct nxbind *nxb = NULL; in ch_open() local
1611 nxb = nxb_alloc(Z_WAITOK); in ch_open()
1612 nxb->nxb_flags |= NXBF_MATCH_UNIQUEID; in ch_open()
1613 nxb->nxb_uniqueid = proc_uniqueid(p); in ch_open()
1614 nxb->nxb_pid = proc_pid(p); in ch_open()
1615 nxb->nxb_flags |= NXBF_MATCH_EXEC_UUID; in ch_open()
1616 uuid_copy(nxb->nxb_exec_uuid, p_uuid); in ch_open()
1618 nxb->nxb_flags |= NXBF_MATCH_KEY; in ch_open()
1619 nxb->nxb_key_len = init->ci_key_len; in ch_open()
1620 nxb->nxb_key = key; in ch_open()
[all …]
/xnu-8019.80.24/bsd/skywalk/nexus/monitor/
H A Dnx_monitor.c339 struct nxbind *nxb, void *info) in nx_mon_dom_bind_port() argument
341 #pragma unused(nx, nx_port, nxb, info) in nx_mon_dom_bind_port()
361 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_mon_dom_connect() argument
363 #pragma unused(nxdom_prov, nx, ch, chr, ch0, nxb, p) in nx_mon_dom_connect()
1425 struct chreq *chr, struct kern_channel *ch0, struct nxbind *nxb, in nx_monitor_na_find() argument
1491 error = na_find(ch, nx, &pchr, ch0, nxb, p, &pna, create); in nx_monitor_na_find()