Home
last modified time | relevance | path

Searched refs:ep (Results 1 – 25 of 31) sorted by relevance

12

/xnu-11215/bsd/netinet/
H A Dip_encap.c169 for (ep = LIST_FIRST(&encaptab); ep; ep = LIST_NEXT(ep, chain)) { in encap4_input()
173 if (ep->proto >= 0 && ep->proto != proto) { in encap4_input()
177 prio = (*ep->func)(m, off, proto, ep->arg); in encap4_input()
260 for (ep = LIST_FIRST(&encaptab); ep; ep = LIST_NEXT(ep, chain)) { in encap6_input()
264 if (ep->proto >= 0 && ep->proto != proto) { in encap6_input()
268 prio = (*ep->func)(m, *offp, proto, ep->arg); in encap6_input()
344 for (ep = LIST_FIRST(&encaptab); ep; ep = LIST_NEXT(ep, chain)) { in encap_attach()
406 ep->af = af; in encap_attach_func()
417 return ep; in encap_attach_func()
490 if (bcmp(&s, &ep->src, ep->src.ss_len) == 0 && in mask_match()
[all …]
/xnu-11215/tests/
H A Dselect_stress.c31 struct endpoint ep; member
88 (uintptr_t)pthread_self(), ep->fd[0], ep->fd[1], (void *)ep); in setup_stress_event()
105 close(ep->fd[0]); in recycle_fds()
106 close(ep->fd[1]); in recycle_fds()
108 close(ep->fd[1]); in recycle_fds()
109 close(ep->fd[0]); in recycle_fds()
114 usleep(((random() % ep->fd[1]) + 1) * ep->fd[1]); in recycle_fds()
152 usleep(((random() % ep->fd[1]) + 1) * ep->fd[1]); in do_stress_events()
155 write_data(ep); in do_stress_events()
218 struct endpoint *ep = &sarg->th[i].ep; in do_select() local
[all …]
H A Dipsec.m237 uint8_t *ep; /* XXX should be passed from upper layer */
252 ep = p + PFKEY_UNUNIT64(msg->sadb_msg_len);
257 while (p < ep) {
259 …T_QUIET; T_ASSERT_GE_PTR((void *)ep, (void *)(p + sizeof(*ext)), "pfkey extension header beyond en…
261 …T_QUIET; T_ASSERT_GE_PTR((void *)ep, (void *)(p + PFKEY_EXTLEN(ext)), "pfkey extension length beyo…
321 T_QUIET; T_EXPECT_EQ_PTR((void *)ep, (void *)p, "invalid pfkey message length");
H A Dbpf_write_batch.c348 unsigned char *ep = buffer + nread; in do_bpf_write_batch() local
350 for (i = 0; i < count && bp < ep; i++) { in do_bpf_write_batch()
H A Dpfkey.c89 uint8_t *ep; /* XXX should be passed from upper layer */ in pfkey_align() local
104 ep = p + PFKEY_UNUNIT64(msg->sadb_msg_len); in pfkey_align()
109 while (p < ep) { in pfkey_align()
111 …T_QUIET; T_ASSERT_GE_PTR((void *)ep, (void *)(p + sizeof(*ext)), "pfkey extension header beyond en… in pfkey_align()
113 …T_QUIET; T_ASSERT_GE_PTR((void *)ep, (void *)(p + PFKEY_EXTLEN(ext)), "pfkey extension length beyo… in pfkey_align()
173 T_QUIET; T_EXPECT_EQ_PTR((void *)ep, (void *)p, "invalid pfkey message length"); in pfkey_align()
/xnu-11215/bsd/kern/
H A Dsubr_eventhandler.c172 if (ep->ee_priority != EHE_DEAD_PRIORITY && in eventhandler_register_internal()
173 epn->ee_priority < ep->ee_priority) { in eventhandler_register_internal()
174 TAILQ_INSERT_BEFORE(ep, epn, ee_link); in eventhandler_register_internal()
178 if (ep == NULL) { in eventhandler_register_internal()
207 if (ep != NULL) { in eventhandler_deregister()
221 kfree_type(struct eventhandler_entry, ep); in eventhandler_deregister()
225 ep->ee_priority = EHE_DEAD_PRIORITY; in eventhandler_deregister()
234 ep = TAILQ_FIRST(&list->el_entries); in eventhandler_deregister()
242 ep->ee_priority = EHE_DEAD_PRIORITY; in eventhandler_deregister()
313 if (ep->ee_priority == EHE_DEAD_PRIORITY) { in eventhandler_prune_list()
[all …]
H A Duipc_syscalls.c828 struct user_sa_endpoints ep; in connectx_nocancel() local
854 ep.sae_srcif = ep64.sae_srcif; in connectx_nocancel()
865 ep.sae_srcif = ep32.sae_srcif; in connectx_nocancel()
866 ep.sae_srcaddr = ep32.sae_srcaddr; in connectx_nocancel()
868 ep.sae_dstaddr = ep32.sae_dstaddr; in connectx_nocancel()
880 if (ep.sae_srcaddrlen > sizeof(ss)) { in connectx_nocancel()
881 error = getsockaddr(so, &src, ep.sae_srcaddr, ep.sae_srcaddrlen, dgram); in connectx_nocancel()
883 error = getsockaddr_s(so, &ss, ep.sae_srcaddr, ep.sae_srcaddrlen, dgram); in connectx_nocancel()
900 if (ep.sae_dstaddrlen > sizeof(sd)) { in connectx_nocancel()
901 error = getsockaddr(so, &dst, ep.sae_dstaddr, ep.sae_dstaddrlen, dgram); in connectx_nocancel()
[all …]
H A Dkern_sysctl.c1020 ep->e_pgid = p->p_pgrpid; in fill_user32_eproc()
1021 ep->e_jobc = pg->pg_jobc; in fill_user32_eproc()
1023 ep->e_flag = EPROC_CTTY; in fill_user32_eproc()
1027 ep->e_ppid = p->p_ppid; in fill_user32_eproc()
1049 ep->e_tdev = NODEV; in fill_user32_eproc()
1058 ep->e_flag |= EPROC_SLEADER; in fill_user32_eproc()
1077 ep->e_pgid = p->p_pgrpid; in fill_user64_eproc()
1078 ep->e_jobc = pg->pg_jobc; in fill_user64_eproc()
1080 ep->e_flag = EPROC_CTTY; in fill_user64_eproc()
1084 ep->e_ppid = p->p_ppid; in fill_user64_eproc()
[all …]
H A Duipc_socket.c727 if (ep != PROC_NULL && ep != p) { in socreate_internal()
729 so->e_pid = proc_pid(ep); in socreate_internal()
861 struct proc *ep = PROC_NULL; in socreate_delegate() local
875 if (ep != PROC_NULL) { in socreate_delegate()
876 proc_rele(ep); in socreate_delegate()
4807 proc_t ep = PROC_NULL; in soopt_cred_check() local
4813 if (ep) { in soopt_cred_check()
4827 if (ep != PROC_NULL) { in soopt_cred_check()
4828 proc_rele(ep); in soopt_cred_check()
8039 if (ep != PROC_NULL) { in so_set_effective_pid()
[all …]
/xnu-11215/bsd/nfs/
H A Dnfs_upcall.c100 struct nfsrv_uc_arg *ep = NULL; in nfsrv_uc_thread() local
121 ep = TAILQ_FIRST(myqueue->ucq_queue); in nfsrv_uc_thread()
124 TAILQ_REMOVE(myqueue->ucq_queue, ep, nua_svcq); in nfsrv_uc_thread()
126 ep->nua_flags &= ~NFS_UC_QUEUED; in nfsrv_uc_thread()
127 ep->nua_flags |= NFS_UC_RECEIVE; in nfsrv_uc_thread()
135 DPRINT("calling nfsrv_rcv for %p\n", (void *)ep->nua_slp); in nfsrv_uc_thread()
136 nfsrv_rcv(ep->nua_so, (void *)ep->nua_slp, ep->nua_waitflag); in nfsrv_uc_thread()
139 ep->nua_flags &= ~NFS_UC_RECEIVE; in nfsrv_uc_thread()
140 wakeup(&ep->nua_flags); in nfsrv_uc_thread()
309 TAILQ_REMOVE(queue->ucq_queue, ep, nua_svcq); in nfsrv_uc_cleanup()
[all …]
/xnu-11215/osfmk/kern/
H A Dexclaves_log.c149 tb_endpoint_t ep = tb_endpoint_create_with_value(TB_TRANSPORT_TYPE_XNU, in log_server_retrieve_logs() local
151 if (ep == NULL) { in log_server_retrieve_logs()
158 tb_error_t err = oslogdarwin_consumer__init(&consumer, ep); in log_server_retrieve_logs()
251 tb_endpoint_t ep = tb_endpoint_create_with_value(TB_TRANSPORT_TYPE_XNU, in redacted_log_server_retrieve_logs() local
253 if (ep == NULL) { in redacted_log_server_retrieve_logs()
260 tb_error_t err = oslogdarwin_redactedconsumer__init(&consumer, ep); in redacted_log_server_retrieve_logs()
303 tb_endpoint_t ep = tb_endpoint_create_with_value(TB_TRANSPORT_TYPE_XNU, in exclaves_oslog_init_config_admin() local
305 if (ep == NULL) { in exclaves_oslog_init_config_admin()
310 tb_error_t err = oslogdarwin_configadmin__init(admin, ep); in exclaves_oslog_init_config_admin()
H A Dexclaves_tests.c71 tb_endpoint_t ep = tb_endpoint_create_with_value(TB_TRANSPORT_TYPE_XNU, in exclaves_hello_exclave_test() local
74 tb_result = exclaveschelloserver_tests__init(&client, ep); in exclaves_hello_exclave_test()
104 tb_endpoint_t ep = tb_endpoint_create_with_value(TB_TRANSPORT_TYPE_XNU, in exclaves_panic_exclave_test() local
107 tb_result = exclaveschelloserver_tests__init(&client, ep); in exclaves_panic_exclave_test()
H A Dexclaves_frame_mint.c62 tb_endpoint_t ep = tb_endpoint_create_with_value( in exclaves_frame_mint_init() local
65 tb_error_t tb_result = framemint_framemint__init(&frame_mint_client, ep); in exclaves_frame_mint_init()
H A Dexclaves_shared_memory.c46 tb_endpoint_t ep = tb_endpoint_create_with_value( in exclaves_shared_memory_init() local
48 tb_error_t ret = sharedmemorybase_segxnuaccess__init(sm_client, ep); in exclaves_shared_memory_init()
H A Dexclaves_sensor.c110 tb_endpoint_t ep = tb_endpoint_create_with_value( in exclaves_eic_init() local
114 exclaveindicatorcontroller_sensorrequest__init(&eic_client, ep); in exclaves_eic_init()
H A Dexclaves_xnuproxy.c642 tb_endpoint_t ep = tb_endpoint_create_with_value( in exclaves_xnuproxy_init() local
645 ret = xnuproxy_cmd__init(&xnuproxy_cmd_client, ep); in exclaves_xnuproxy_init()
H A Dexclaves_upcalls.c699 tb_endpoint_t ep = tb_endpoint_create_with_value(TB_TRANSPORT_TYPE_XNU, in exclaves_hello_upcall_test() local
702 tb_result = exclaveschelloserver_tests__init(&client, ep); in exclaves_hello_upcall_test()
/xnu-11215/libsyscall/wrappers/spawn/
H A Dposix_spawn_filtering.c336 char *const *ep = envp; in _posix_spawn_with_filter() local
337 while (*ep++) { in _posix_spawn_with_filter()
345 ep = envs_to_add; in _posix_spawn_with_filter()
346 while (envs_to_add_count < MAX_EXTRA_ENVS && *ep++) { in _posix_spawn_with_filter()
/xnu-11215/bsd/netinet6/
H A Dip6protosw.h199 (struct socket *so, struct proc *p, struct proc *ep);
H A Dicmp6.c1641 char *cp, *ep; in ni6_nametodns() local
1673 ep = mtod(m, char *) + M_TRAILINGSPACE(m); in ni6_nametodns()
1697 while (cp < ep && p < name + namelen) { in ni6_nametodns()
1703 if (cp + i + 1 >= ep) { in ni6_nametodns()
1723 if (cp + nterm >= ep) { in ni6_nametodns()
/xnu-11215/bsd/skywalk/nexus/upipe/
H A Dnx_user_pipe.c1459 ch_endpoint_t ep = chr->cr_endpoint; in nx_upipe_na_find() local
1474 (ep != CH_ENDPOINT_USER_PIPE_MASTER && in nx_upipe_na_find()
1475 ep != CH_ENDPOINT_USER_PIPE_SLAVE) ? " (skipped)" : ""); in nx_upipe_na_find()
1478 if (ep != CH_ENDPOINT_USER_PIPE_MASTER && in nx_upipe_na_find()
1479 ep != CH_ENDPOINT_USER_PIPE_SLAVE) { in nx_upipe_na_find()
1527 if (mna->pna_role == ep) { in nx_upipe_na_find()
1643 if (ep == CH_ENDPOINT_USER_PIPE_MASTER) { in nx_upipe_na_find()
/xnu-11215/bsd/netkey/
H A Dkey_debug.c247 char *p, *ep;
250 ep = p + len;
251 for (/*nothing*/; *p && p < ep; p++) {
/xnu-11215/bsd/skywalk/nexus/kpipe/
H A Dnx_kernel_pipe.c702 ch_endpoint_t ep = chr->cr_endpoint; in nx_kpipe_na_find() local
717 (ep != CH_ENDPOINT_KERNEL_PIPE) ? " (skipped)" : ""); in nx_kpipe_na_find()
720 if (ep != CH_ENDPOINT_KERNEL_PIPE) { in nx_kpipe_na_find()
/xnu-11215/bsd/dev/dtrace/
H A Ddtrace.c11900 if (probe != NULL && ep != NULL && probe->dtpr_gen < ep->dted_probegen) { in dtrace_ecb_create_enable()
12581 dtrace_ecbdesc_t *ep; in dtrace_enabling_destroy() local
12590 ep = enab->dten_desc[i]; in dtrace_enabling_destroy()
12782 enab->dten_current = ep; in dtrace_enabling_match()
12797 if ((matched = dtrace_probe_enable(&ep->dted_probe, enab, ep)) < 0) in dtrace_enabling_match()
13623 dtrace_ecbdesc_t *ep; in dtrace_dof_ecbdesc() local
13651 desc = &ep->dted_probe; in dtrace_dof_ecbdesc()
13678 return (ep); in dtrace_dof_ecbdesc()
13705 dtrace_ecbdesc_t *ep; in dtrace_dof_slurp() local
13866 if (ep == NULL) { in dtrace_dof_slurp()
[all …]
/xnu-11215/iokit/Kernel/
H A DIODeviceTreeSupport.cpp214 uint32_t ep = 0; in IODeviceTreeAlloc() local
219 ep = (uint32_t) strtol(found + 1, &end, 0); in IODeviceTreeAlloc()
226 child->setProperty("exclave-endpoint", &ep, sizeof(ep)); in IODeviceTreeAlloc()

12