Home
last modified time | relevance | path

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

/xnu-11417.140.69/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 = sk_alloc_data(sizeof(uuid_key), in fsw_flow_add()
150 nxb.nxb_key_len = sizeof(uuid_key); 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.c694 struct nxbind *nxb, void *info) in nx_fsw_dom_bind_port() argument
702 ASSERT(nxb != NULL); in nx_fsw_dom_bind_port()
725 error = nx_port_bind(nx, port, nxb); in nx_fsw_dom_bind_port()
730 error = nx_port_bind(nx, port, nxb); in nx_fsw_dom_bind_port()
768 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_fsw_dom_connect() argument
792 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_fsw_dom_connect()
910 struct chreq *chr, struct nxbind *nxb, struct proc *p, in nx_fsw_na_find() argument
944 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
129 err = fsw_port_alloc(fsw, nxb, vpna, chr->cr_port, p, FALSE, FALSE); in fsw_attach_vp()
152 err = fsw_port_alloc(fsw, nxb, vpna, (*vpna)->vpna_nx_port, p, FALSE, FALSE); in fsw_attach_vp()
1414 const struct nxbind *nxb) in fsw_port_ctor() argument
1416 #pragma unused(nxb) in fsw_port_ctor()
1420 ASSERT(nxb == NULL || !(nxb->nxb_flags & NXBF_MATCH_UNIQUEID) || in fsw_port_ctor()
1421 vpna->vpna_pid == nxb->nxb_pid); in fsw_port_ctor()
1517 fsw_port_alloc__(struct nx_flowswitch *fsw, struct nxbind *nxb, in fsw_port_alloc__() argument
1526 error = nx_port_alloc(nx, nx_port, nxb, (struct nexus_adapter **)vpna, p); in fsw_port_alloc__()
1532 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-11417.140.69/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 *__single 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 *__single nxb; in nx_kpipe_prov_nx_dtor() local
[all …]
/xnu-11417.140.69/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 = sk_alloc_data(sizeof(uuid_key), Z_WAITOK | Z_NOFAIL, in nx_netif_netagent_flow_bind()
296 nxb.nxb_key_len = sizeof(uuid_key); 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_sized_by(nxb.nxb_key, nxb.nxb_key_len); in nx_netif_netagent_flow_bind()
[all …]
H A Dnx_netif.c1074 struct nxbind *nxb, void *info) in nx_netif_dom_bind_port() argument
1081 ASSERT(nxb != NULL); in nx_netif_dom_bind_port()
1101 error = nx_port_bind_info(nx, port, nxb, info); in nx_netif_dom_bind_port()
1107 error = nx_port_bind_info(nx, port, nxb, info); in nx_netif_dom_bind_port()
1145 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_netif_dom_connect() argument
1199 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_netif_dom_connect()
3086 struct chreq *chr, struct nxbind *nxb, struct proc *p, argument
3145 (anon || nif->nif_dev_nxb == NULL || nxb == NULL ||
3146 !nxb_is_equal(nif->nif_dev_nxb, nxb))))) {
3177 err = nx_port_alloc(nx, nx_port, nxb, &na, p);
[all …]
/xnu-11417.140.69/bsd/skywalk/nexus/ !
H A Dnexus.c647 struct nxbind *nxb = NULL; in nxctl_nexus_bind() local
771 nxb = nxb_alloc(Z_WAITOK); in nxctl_nexus_bind()
774 nxb->nxb_flags |= NXBF_MATCH_UNIQUEID; in nxctl_nexus_bind()
775 nxb->nxb_uniqueid = p_uniqueid; in nxctl_nexus_bind()
776 nxb->nxb_pid = p_pid; in nxctl_nexus_bind()
779 nxb->nxb_flags |= NXBF_MATCH_EXEC_UUID; in nxctl_nexus_bind()
781 uuid_copy(nxb->nxb_exec_uuid, p_uuid); in nxctl_nexus_bind()
784 nxb->nxb_flags |= NXBF_MATCH_KEY; in nxctl_nexus_bind()
792 nxb->nxb_key = key; in nxctl_nexus_bind()
794 nxb->nxb_key_len = nbr.nb_key_len; in nxctl_nexus_bind()
[all …]
H A Dnexus_adapter.c2657 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in na_connect() argument
2670 err = na_find(ch, nx, chr, ch0, nxb, p, &na, TRUE /* create */); in na_connect()
3003 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p, in na_find() argument
3028 error = nx_monitor_na_find(nx, ch, chr, ch0, nxb, p, na, create); in na_find()
3035 error = nx_upipe_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
3042 error = nx_kpipe_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
3049 error = nx_fsw_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
3055 error = nx_netif_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
/xnu-11417.140.69/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-11417.140.69/bsd/skywalk/channel/ !
H A Dchannel.c1546 struct nxbind *nxb = NULL; in ch_open() local
1626 nxb = nxb_alloc(Z_WAITOK); in ch_open()
1627 nxb->nxb_flags |= NXBF_MATCH_UNIQUEID; in ch_open()
1628 nxb->nxb_uniqueid = proc_uniqueid(p); in ch_open()
1629 nxb->nxb_pid = proc_pid(p); in ch_open()
1630 nxb->nxb_flags |= NXBF_MATCH_EXEC_UUID; in ch_open()
1631 uuid_copy(nxb->nxb_exec_uuid, p_uuid); in ch_open()
1633 nxb->nxb_flags |= NXBF_MATCH_KEY; in ch_open()
1634 nxb->nxb_key_len = init->ci_key_len; in ch_open()
1635 nxb->nxb_key = key; in ch_open()
[all …]
/xnu-11417.140.69/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()