Home
last modified time | relevance | path

Searched refs:how (Results 1 – 25 of 83) sorted by relevance

1234

/xnu-11215/bsd/kern/
H A Dkpi_mbuf.c142 *mbuf = m_get(how, type); in mbuf_get()
151 *mbuf = m_gethdr(how, type); in mbuf_gethdr()
298 *mbuf = m_get(how, type); in mbuf_getcluster()
309 *mbuf = m_mclget(*mbuf, how); in mbuf_getcluster()
356 *mbuf = m_mclget(*mbuf, how); in mbuf_mclget()
375 *mbuf = m_getpacket_how(how); in mbuf_getpacket()
378 if (how == MBUF_WAITOK) { in mbuf_getpacket()
446 *new_mbuf = m_dup(src, how); in mbuf_dup()
1021 mbuf_how_t how, in mbuf_tag_allocate() argument
1363 mbuf_how_t how) in mbuf_copyback() argument
[all …]
H A Duipc_mbuf.c4396 #define _MGET(m, how, type) ((m) = _M_GET(how, type)) argument
4397 #define _MGETHDR(m, how, type) ((m) = _M_GETHDR(how, type)) argument
6151 _MGET(mn, how, m->m_type);
6185 m = m_prepend(m, len, how);
7232 int how) argument
7271 MCLGET(m, how);
7492 m_dup_pkthdr(n, m, how);
7520 MCLGET(n, how);
7522 n = m_mbigget(n, how);
7524 n = m_m16kget(n, how);
[all …]
H A Duipc_socket.c617 cached_sock_alloc(&so, how); in soalloc()
4434 soshutdown(struct socket *so, int how) in soshutdown() argument
4440 switch (how) { in soshutdown()
4449 error = soshutdownlock(so, how); in soshutdown()
4471 if (how != SHUT_WR) { in soshutdownlock_final()
4479 if (how != SHUT_RD) { in soshutdownlock_final()
6343 int how; in soopt_getm() local
6350 MGET(m, how, MT_DATA); in soopt_getm()
6355 MCLGET(m, how); in soopt_getm()
6369 MGET(m, how, MT_DATA); in soopt_getm()
[all …]
H A Duipc_mbuf2.c952 m_tag_copy(struct m_tag *t, int how) in m_tag_copy() argument
958 p = m_tag_alloc(t->m_tag_id, t->m_tag_type, t->m_tag_len, how); in m_tag_copy()
973 m_tag_copy_chain(struct mbuf *to, struct mbuf *from, int how) in m_tag_copy_chain() argument
982 t = m_tag_copy(p, how); in m_tag_copy_chain()
/xnu-11215/bsd/sys/
H A Dkpi_mbuf.h384 extern errno_t mbuf_get(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf)
426 extern errno_t mbuf_attachcluster(mbuf_how_t how, mbuf_type_t type,
474 extern errno_t mbuf_ring_cluster_alloc(mbuf_how_t how, mbuf_type_t type,
568 extern errno_t mbuf_allocpacket(mbuf_how_t how, size_t packetlen,
620 extern errno_t mbuf_getpacket(mbuf_how_t how, mbuf_t *mbuf)
688 mbuf_how_t how, mbuf_t *new_mbuf)
718 extern errno_t mbuf_prepend(mbuf_t *mbuf, size_t len, mbuf_how_t how)
734 extern errno_t mbuf_split(mbuf_t src, size_t offset, mbuf_how_t how,
859 const void *data, mbuf_how_t how)
1428 mbuf_tag_type_t type, size_t length, mbuf_how_t how, void **data_p)
[all …]
H A Dmbuf.h870 #define MGET(m, how, type) ((m) = m_get((how), (type))) argument
872 #define MGETHDR(m, how, type) ((m) = m_gethdr((how), (type))) argument
891 #define MCLALLOC(p, how) ((p) = m_mclalloc(how)) argument
895 #define MCLGET(m, how) ((m) = m_mclget(m, how)) argument
1005 #define M_PREPEND(m, plen, how, align) \ argument
1006 ((m) = m_prepend_2((m), (plen), (how), (align)))
1658 __private_extern__ struct mbuf *m_dup(struct mbuf *m, int how);
H A Dkpi_socket.h402 extern errno_t sock_shutdown(socket_t so, int how)
H A Dsocketvar.h988 extern int soshutdown(struct socket *so, int how);
989 extern int soshutdownlock(struct socket *so, int how);
990 extern int soshutdownlock_final(struct socket *so, int how);
/xnu-11215/tests/ipc/
H A Dipc_thread_ports_race.c60 test_race(const char *how, task_t task, pid_t pid) in test_race() argument
67 T_LOG("Starting: %s (port: %#x, pid: %d)", how, task, pid); in test_race()
82 T_PASS("Done %d loops of %s, found %d threads", COUNT, how, ths); in test_race()
/xnu-11215/bsd/net/
H A Dflowadv.c129 flowadv_alloc_entry(int how) in flowadv_alloc_entry() argument
131 return kalloc_type(struct flowadv_fcentry, how | Z_ZERO); in flowadv_alloc_entry()
H A Dcontent_filter.c5447 if (*how != SHUT_WR) { in cfil_sock_shutdown()
5458 if (*how != SHUT_RD) { in cfil_sock_shutdown()
5476 if (*how == SHUT_WR) { in cfil_sock_shutdown()
5479 *how = SHUT_RD; in cfil_sock_shutdown()
5560 if (how != SHUT_WR) { in cfil_sock_notify_shutdown()
5564 if (how != SHUT_RD) { in cfil_sock_notify_shutdown()
6641 int how; member
6705 apply_context.how = how; in cfil_sock_udp_notify_shutdown()
6749 if (*how != SHUT_WR) { in cfil_sock_udp_shutdown()
6758 if (*how != SHUT_RD) { in cfil_sock_udp_shutdown()
[all …]
H A Dcontent_filter.h560 extern int cfil_sock_shutdown(struct socket *so, int *how);
562 extern void cfil_sock_notify_shutdown(struct socket *so, int how);
H A Dif_llreach.c455 iflr_alloc(zalloc_flags_t how) in iflr_alloc() argument
457 struct if_llreach *lr = zalloc_flags(iflr_zone, how | Z_ZERO); in iflr_alloc()
/xnu-11215/osfmk/arm/
H A Dlocks_arm.c335 const char *how = "Invalid"; in __lck_spin_invalid_panic() local
339 how = "Destroyed"; in __lck_spin_invalid_panic()
343 how, lck, lck->lck_spin_data, lck->type); in __lck_spin_invalid_panic()
/xnu-11215/osfmk/libsa/
H A Dstring.h229 #define __xnu_struct_size_check(ptr, size, how) ((void)0) argument
230 #define __xnu_member_size_check(ptr, size, how) ((void)0) argument
247 #define __xnu_struct_size_check(ptr, size, how) ({ \
249 __xnu_fortify_trap_ ## how(); \
252 #define __xnu_member_size_check(ptr, size, how) ({ \
254 __xnu_fortify_trap_ ## how(); \
/xnu-11215/bsd/netinet/
H A Dflow_divert.c731 if (how != SHUT_RD) { in flow_divert_update_closed_state()
741 if (how != SHUT_WR) { in flow_divert_update_closed_state()
1510 how = htonl(how); in flow_divert_send_close()
1558 how = SHUT_RD; in flow_divert_send_close_if_needed()
1562 if (how == SHUT_RD) { in flow_divert_send_close_if_needed()
1563 how = SHUT_RDWR; in flow_divert_send_close_if_needed()
1565 how = SHUT_WR; in flow_divert_send_close_if_needed()
1570 if (how != -1) { in flow_divert_send_close_if_needed()
1574 if (how != SHUT_RD) { in flow_divert_send_close_if_needed()
1577 if (how != SHUT_WR) { in flow_divert_send_close_if_needed()
[all …]
/xnu-11215/doc/mach_ipc/
H A Dkmsg.md356 due to how reachable it is, and how flexible its state machine is.
358 In order to reduce how appetizing this is, IPC kmsg inside of the kernel
378 For example, here is how a port descriptor type looks like in kernel:
/xnu-11215/bsd/netinet6/
H A Dnd6_prproxy.c211 nd6_ndprl_alloc(zalloc_flags_t how) in nd6_ndprl_alloc() argument
213 return zalloc_flags(ndprl_zone, how | Z_ZERO); in nd6_ndprl_alloc()
1274 nd6_solsrc_alloc(int how) in nd6_solsrc_alloc() argument
1276 return zalloc_flags(solsrc_zone, how | Z_ZERO); in nd6_solsrc_alloc()
1453 nd6_soltgt_alloc(int how) in nd6_soltgt_alloc() argument
1457 soltgt = zalloc_flags(soltgt_zone, how | Z_ZERO); in nd6_soltgt_alloc()
H A Din6_mcast.c3188 in6_multi_alloc(zalloc_flags_t how) in in6_multi_alloc() argument
3193 in6m = kalloc_type(struct in6_multi, how | Z_ZERO); in in6_multi_alloc()
3196 in6m_dbg = kalloc_type(struct in6_multi_dbg, how | Z_ZERO); in in6_multi_alloc()
3457 in6_multi_mship_alloc(zalloc_flags_t how) in in6_multi_mship_alloc() argument
3459 return zalloc_flags(imm_zone, how | Z_ZERO); in in6_multi_mship_alloc()
3500 ip6ms_alloc(zalloc_flags_t how) in ip6ms_alloc() argument
3502 return zalloc_flags(ip6ms_zone, how | Z_ZERO); in ip6ms_alloc()
3512 in6ms_alloc(zalloc_flags_t how) in in6ms_alloc() argument
3514 return zalloc_flags(in6ms_zone, how | Z_ZERO); in in6ms_alloc()
/xnu-11215/bsd/net/pktsched/
H A Dpktsched.c545 pktsched_alloc_fcentry(pktsched_pkt_t *pkt, struct ifnet *ifp, int how) in pktsched_alloc_fcentry() argument
554 fce = flowadv_alloc_entry(how); in pktsched_alloc_fcentry()
583 fce = flowadv_alloc_entry(how); in pktsched_alloc_fcentry()
/xnu-11215/doc/lifecycle/
H A Dstartup.md33 2. document what services this phase provides, and how it uses ranks in this
71 See the comments for the MACHINE_TIMEOUT macro on how they are used in
/xnu-11215/tests/
H A Dvsock.c528 int how[] = {SHUT_RD, SHUT_WR, SHUT_RDWR}; variable
529 for (unsigned long i = 0; i < COUNT_ELEMS(how); i++) {
531 int result = shutdown(socket, how[i]);
/xnu-11215/bsd/skywalk/nexus/
H A Dnexus.c957 nxb_alloc(zalloc_flags_t how) in nxb_alloc() argument
959 struct nxbind *nxb = zalloc_flags(nxbind_zone, how | Z_ZERO); in nxb_alloc()
1176 nxctl_alloc(struct proc *p, struct fileproc *fp, zalloc_flags_t how) in nxctl_alloc() argument
1178 struct nxctl *nxctl = zalloc_flags(nxctl_zone, how); in nxctl_alloc()
1720 nxprov_alloc(struct kern_nexus_domain_provider *nxdom_prov, zalloc_flags_t how) in nxprov_alloc() argument
1727 nxp = nxprov_params_alloc(how); in nxprov_alloc()
1733 nxprov = zalloc_flags(nxprov_zone, how | Z_ZERO); in nxprov_alloc()
1812 nxprov_params_alloc(zalloc_flags_t how) in nxprov_params_alloc() argument
1814 return zalloc_flags(nxprov_params_zone, how | Z_ZERO); in nxprov_params_alloc()
2227 nx_alloc(zalloc_flags_t how) in nx_alloc() argument
[all …]
/xnu-11215/tools/lldbmacros/
H A DREADME.md34 Following are detailed steps on how to debug a panic'ed / NMI'ed machine (For the curious souls).
77 …ng commands and summaries in lldb. Following is the stack of platforms and how commands and summar…
150 …help <cmdname> to know how each option operates on that particular command. For an example of how
160 Following is a step by step guideline on how to add a new command ( e.g showtaskvme ). [extra tip: …
207 The lldb debugger provides ways for user to customize how a particular type of object be described …
225 …, then feel free to add a type summary for that type. Following is an easy guide on how to do that.
/xnu-11215/osfmk/mach/
H A Ddoubleagent_mig.defs69 in options : uint32_t; /* how to allocate */

1234