| /xnu-8796.101.5/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_flow.c | 132 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 D | nx_flowswitch.c | 640 struct nxbind *nxb, void *info) in nx_fsw_dom_bind_port() argument 648 ASSERT(nxb != NULL); in nx_fsw_dom_bind_port() 671 error = nx_port_bind(nx, port, nxb); in nx_fsw_dom_bind_port() 676 error = nx_port_bind(nx, port, nxb); in nx_fsw_dom_bind_port() 714 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_fsw_dom_connect() argument 754 err = na_connect(nx, ch, chr, ch0, nxb, p); in nx_fsw_dom_connect() 873 struct chreq *chr, struct nxbind *nxb, struct proc *p, in nx_fsw_na_find() argument 908 error = fsw_attach_vp(nx, ch, chr, nxb, p, &vpna); in nx_fsw_na_find()
|
| H A D | fsw.c | 114 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() 159 err = fsw_port_alloc(fsw, nxb, vpna, (*vpna)->vpna_nx_port, p, FALSE, FALSE); in fsw_attach_vp() 1293 const struct nxbind *nxb) in fsw_port_ctor() argument 1295 #pragma unused(nxb) in fsw_port_ctor() 1299 ASSERT(nxb == NULL || !(nxb->nxb_flags & NXBF_MATCH_UNIQUEID) || in fsw_port_ctor() 1300 vpna->vpna_pid == nxb->nxb_pid); in fsw_port_ctor() 1396 fsw_port_alloc__(struct nx_flowswitch *fsw, struct nxbind *nxb, in fsw_port_alloc__() argument 1405 error = nx_port_alloc(nx, nx_port, nxb, (struct nexus_adapter **)vpna, p); in fsw_port_alloc__() 1411 if (nxb != NULL && (nxb->nxb_flags & NXBF_MATCH_UNIQUEID)) { in fsw_port_alloc__() [all …]
|
| H A D | fsw_var.h | 92 struct chreq *chr, struct nxbind *nxb, struct proc *p, 100 extern int fsw_port_alloc(struct nx_flowswitch *fsw, struct nxbind *nxb,
|
| /xnu-8796.101.5/bsd/skywalk/nexus/kpipe/ |
| H A D | nx_kernel_pipe.c | 259 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-8796.101.5/bsd/skywalk/nexus/ |
| H A D | nexus.c | 617 struct nxbind *nxb = NULL; in nxctl_nexus_bind() local 734 nxb = nxb_alloc(Z_WAITOK); in nxctl_nexus_bind() 737 nxb->nxb_flags |= NXBF_MATCH_UNIQUEID; in nxctl_nexus_bind() 738 nxb->nxb_uniqueid = p_uniqueid; in nxctl_nexus_bind() 739 nxb->nxb_pid = p_pid; in nxctl_nexus_bind() 742 nxb->nxb_flags |= NXBF_MATCH_EXEC_UUID; in nxctl_nexus_bind() 744 uuid_copy(nxb->nxb_exec_uuid, p_uuid); in nxctl_nexus_bind() 747 nxb->nxb_flags |= NXBF_MATCH_KEY; in nxctl_nexus_bind() 749 nxb->nxb_key = key; in nxctl_nexus_bind() 753 nxb->nxb_key_len = nbr.nb_key_len; in nxctl_nexus_bind() [all …]
|
| H A D | nexus_adapter.c | 2505 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in na_connect() argument 2518 err = na_find(ch, nx, chr, ch0, nxb, p, &na, TRUE /* create */); in na_connect() 2853 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p, in na_find() argument 2878 error = nx_monitor_na_find(nx, ch, chr, ch0, nxb, p, na, create); in na_find() 2885 error = nx_upipe_na_find(nx, ch, chr, nxb, p, na, create); in na_find() 2892 error = nx_kpipe_na_find(nx, ch, chr, nxb, p, na, create); in na_find() 2899 error = nx_fsw_na_find(nx, ch, chr, nxb, p, na, create); in na_find() 2905 error = nx_netif_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
|
| /xnu-8796.101.5/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_netagent.c | 303 struct nxbind nxb; in nx_netif_netagent_flow_bind() local 323 bzero(&nxb, sizeof(nxb)); in nx_netif_netagent_flow_bind() 324 nxb.nxb_flags |= NXBF_MATCH_UNIQUEID; in nx_netif_netagent_flow_bind() 325 nxb.nxb_uniqueid = proc_uniqueid(p); in nx_netif_netagent_flow_bind() 326 nxb.nxb_pid = pid; in nx_netif_netagent_flow_bind() 327 nxb.nxb_flags |= NXBF_MATCH_KEY; in nx_netif_netagent_flow_bind() 328 nxb.nxb_key_len = sizeof(uuid_key); in nx_netif_netagent_flow_bind() 329 nxb.nxb_key = sk_alloc_data(nxb.nxb_key_len, Z_WAITOK | Z_NOFAIL, in nx_netif_netagent_flow_bind() 331 bcopy(uuid_key, nxb.nxb_key, nxb.nxb_key_len); in nx_netif_netagent_flow_bind() 335 sk_free_data(nxb.nxb_key, nxb.nxb_key_len); in nx_netif_netagent_flow_bind() [all …]
|
| H A D | nx_netif.c | 1073 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() 3030 struct chreq *chr, struct nxbind *nxb, struct proc *p, argument 3089 (anon || nif->nif_dev_nxb == NULL || nxb == NULL || 3090 !nxb_is_equal(nif->nif_dev_nxb, nxb))))) { 3121 err = nx_port_alloc(nx, nx_port, nxb, &na, p); [all …]
|
| /xnu-8796.101.5/bsd/skywalk/nexus/upipe/ |
| H A D | nx_user_pipe.c | 437 struct nxbind *nxb = NULL; in nx_upipe_dom_bind_port() local 454 nxb = nxb_alloc(Z_WAITOK); in nx_upipe_dom_bind_port() 455 nxb_move(nxb0, nxb); in nx_upipe_dom_bind_port() 457 u->nup_cli_nxb = nxb; in nx_upipe_dom_bind_port() 459 u->nup_srv_nxb = nxb; in nx_upipe_dom_bind_port() 477 struct nxbind *nxb = NULL; in nx_upipe_dom_unbind_port() local 494 nxb = u->nup_cli_nxb; in nx_upipe_dom_unbind_port() 497 nxb = u->nup_srv_nxb; in nx_upipe_dom_unbind_port() 500 nxb_free(nxb); in nx_upipe_dom_unbind_port() 515 struct kern_channel *ch0, struct nxbind *nxb, struct proc *p) in nx_upipe_dom_connect() argument [all …]
|
| /xnu-8796.101.5/bsd/skywalk/channel/ |
| H A D | channel.c | 1529 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-8796.101.5/bsd/skywalk/nexus/monitor/ |
| H A D | nx_monitor.c | 333 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() 1419 struct chreq *chr, struct kern_channel *ch0, struct nxbind *nxb, in nx_monitor_na_find() argument 1485 error = na_find(ch, nx, &pchr, ch0, nxb, p, &pna, create); in nx_monitor_na_find()
|