| /xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/ |
| H A D | fsw_flow.c | 134 struct nxbind nxb; in fsw_flow_add() local 145 bzero(&nxb, sizeof(nxb)); in fsw_flow_add() 146 nxb.nxb_flags |= NXBF_MATCH_UNIQUEID; in fsw_flow_add() 147 nxb.nxb_uniqueid = proc_uniqueid(p); in fsw_flow_add() 148 nxb.nxb_pid = pid; in fsw_flow_add() 149 nxb.nxb_flags |= NXBF_MATCH_KEY; in fsw_flow_add() 150 nxb.nxb_key = sk_alloc_data(sizeof(uuid_key), in fsw_flow_add() 152 nxb.nxb_key_len = sizeof(uuid_key); in fsw_flow_add() 153 bcopy(uuid_key, nxb.nxb_key, nxb.nxb_key_len); in fsw_flow_add() 164 &nx_port, &nxb, NULL)) != 0) { in fsw_flow_add() [all …]
|
| H A D | nx_flowswitch.c | 693 struct nxbind *nxb, void *info) in nx_fsw_dom_bind_port() argument 701 ASSERT(nxb != NULL); in nx_fsw_dom_bind_port() 724 error = nx_port_bind(nx, port, nxb); in nx_fsw_dom_bind_port() 729 error = nx_port_bind(nx, port, nxb); in nx_fsw_dom_bind_port() 767 struct nxbind *nxb, struct proc *p) in nx_fsw_dom_connect() argument 791 err = na_connect(nx, ch, chr, 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 D | fsw.c | 117 struct chreq *chr, struct nxbind *nxb, struct proc *p, in fsw_attach_vp() argument 132 err = fsw_port_alloc(fsw, nxb, vpna, chr->cr_port, p, FALSE, FALSE); in fsw_attach_vp() 155 err = fsw_port_alloc(fsw, nxb, vpna, (*vpna)->vpna_nx_port, p, FALSE, FALSE); in fsw_attach_vp() 1425 const struct nxbind *nxb) in fsw_port_ctor() argument 1427 #pragma unused(nxb) in fsw_port_ctor() 1431 ASSERT(nxb == NULL || !(nxb->nxb_flags & NXBF_MATCH_UNIQUEID) || in fsw_port_ctor() 1432 vpna->vpna_pid == nxb->nxb_pid); in fsw_port_ctor() 1528 fsw_port_alloc__(struct nx_flowswitch *fsw, struct nxbind *nxb, in fsw_port_alloc__() argument 1537 error = nx_port_alloc(nx, nx_port, nxb, (struct nexus_adapter **)vpna, p); in fsw_port_alloc__() 1543 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-12377.1.9/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 *__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 nxbind *nxb, struct proc *p) in nx_kpipe_dom_connect() argument 363 err = na_connect(nx, ch, chr, nxb, p); in nx_kpipe_dom_connect() 553 struct nxbind *__single nxb; in nx_kpipe_prov_nx_dtor() local [all …]
|
| /xnu-12377.1.9/bsd/skywalk/nexus/netif/ |
| H A D | nx_netif_netagent.c | 269 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 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 nxbind *nxb, struct proc *p) in nx_netif_dom_connect() argument 1198 err = na_connect(nx, ch, chr, nxb, p); in nx_netif_dom_connect() 3155 struct chreq *chr, struct nxbind *nxb, struct proc *p, argument 3213 (anon || nif->nif_dev_nxb == NULL || nxb == NULL || 3214 !nxb_is_equal(nif->nif_dev_nxb, nxb))))) { 3245 err = nx_port_alloc(nx, nx_port, nxb, &na, p); [all …]
|
| /xnu-12377.1.9/bsd/skywalk/nexus/ |
| H A D | nexus.c | 649 struct nxbind *nxb = NULL; in nxctl_nexus_bind() local 773 nxb = nxb_alloc(Z_WAITOK); in nxctl_nexus_bind() 776 nxb->nxb_flags |= NXBF_MATCH_UNIQUEID; in nxctl_nexus_bind() 777 nxb->nxb_uniqueid = p_uniqueid; in nxctl_nexus_bind() 778 nxb->nxb_pid = p_pid; in nxctl_nexus_bind() 781 nxb->nxb_flags |= NXBF_MATCH_EXEC_UUID; in nxctl_nexus_bind() 783 uuid_copy(nxb->nxb_exec_uuid, p_uuid); in nxctl_nexus_bind() 786 nxb->nxb_flags |= NXBF_MATCH_KEY; in nxctl_nexus_bind() 794 nxb->nxb_key = key; in nxctl_nexus_bind() 796 nxb->nxb_key_len = nbr.nb_key_len; in nxctl_nexus_bind() [all …]
|
| H A D | nexus_adapter.c | 2608 struct nxbind *nxb, struct proc *p) in na_connect() argument 2621 err = na_find(ch, nx, chr, nxb, p, &na, TRUE /* create */); in na_connect() 2952 struct nxbind *nxb, struct proc *p, struct nexus_adapter **na, in na_find() argument 2977 error = nx_upipe_na_find(nx, ch, chr, nxb, p, na, create); in na_find() 2984 error = nx_kpipe_na_find(nx, ch, chr, nxb, p, na, create); in na_find() 2991 error = nx_fsw_na_find(nx, ch, chr, nxb, p, na, create); in na_find() 2997 error = nx_netif_na_find(nx, ch, chr, nxb, p, na, create); in na_find()
|
| /xnu-12377.1.9/bsd/skywalk/nexus/upipe/ |
| H A D | nx_user_pipe.c | 438 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 nxbind *nxb, struct proc *p) in nx_upipe_dom_connect() argument [all …]
|
| /xnu-12377.1.9/bsd/skywalk/channel/ |
| H A D | channel.c | 1544 struct nxbind *nxb = NULL; in ch_open() local 1604 nxb = nxb_alloc(Z_WAITOK); in ch_open() 1605 nxb->nxb_flags |= NXBF_MATCH_UNIQUEID; in ch_open() 1606 nxb->nxb_uniqueid = proc_uniqueid(p); in ch_open() 1607 nxb->nxb_pid = proc_pid(p); in ch_open() 1608 nxb->nxb_flags |= NXBF_MATCH_EXEC_UUID; in ch_open() 1609 uuid_copy(nxb->nxb_exec_uuid, p_uuid); in ch_open() 1611 nxb->nxb_flags |= NXBF_MATCH_KEY; in ch_open() 1612 nxb->nxb_key_len = init->ci_key_len; in ch_open() 1613 nxb->nxb_key = key; in ch_open() [all …]
|