/xnu-2422.115.4/security/ |
H A D | mac_alloc.h | 45 void * mac_kalloc (vm_size_t size, int how); 66 void * mac_zalloc (zone_t zone, int how);
|
H A D | mac_alloc.c | 54 mac_kalloc(vm_size_t size, int how) argument 57 if (how == M_WAITOK) 155 mac_zalloc(zone_t zone, int how) argument 158 if (how == M_WAITOK)
|
/xnu-2422.115.4/bsd/kern/ |
H A D | kpi_mbuf.c | 99 errno_t mbuf_get(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf) argument 102 *mbuf = m_get(how, type); 107 errno_t mbuf_gethdr(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf) argument 110 *mbuf = m_gethdr(how, type); 116 mbuf_attachcluster(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf, argument 124 extfree, extsize, extarg, how)) == NULL) 131 mbuf_alloccluster(mbuf_how_t how, size_t *size, caddr_t *addr) argument 142 if (*size <= MCLBYTES && (*addr = m_mclalloc(how)) != NULL) 145 (*addr = m_bigalloc(how)) != NULL) 148 (*addr = m_16kalloc(how)) ! 177 mbuf_getcluster(mbuf_how_t how, mbuf_type_t type, size_t size, mbuf_t* mbuf) argument 221 mbuf_mclget(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf) argument 250 mbuf_getpacket(mbuf_how_t how, mbuf_t *mbuf) argument 303 mbuf_copym(const mbuf_t src, size_t offset, size_t len, mbuf_how_t how, mbuf_t *new_mbuf) argument 312 mbuf_dup(const mbuf_t src, mbuf_how_t how, mbuf_t *new_mbuf) argument 320 mbuf_prepend(mbuf_t *orig, size_t len, mbuf_how_t how) argument 328 mbuf_split(mbuf_t src, size_t offset, mbuf_how_t how, mbuf_t *new_mbuf) argument 837 mbuf_tag_allocate( mbuf_t mbuf, mbuf_tag_id_t id, mbuf_tag_type_t type, size_t length, mbuf_how_t how, void** data_p) argument 949 mbuf_add_drvaux(mbuf_t mbuf, mbuf_how_t how, u_int32_t family, u_int32_t subfamily, size_t length, void **data_p) argument 1056 mbuf_allocpacket(mbuf_how_t how, size_t packetlen, unsigned int *maxchunks, mbuf_t *mbuf) argument 1084 mbuf_allocpacket_list(unsigned int numpkts, mbuf_how_t how, size_t packetlen, unsigned int *maxchunks, mbuf_t *mbuf) argument 1124 mbuf_copyback( mbuf_t m, size_t off, size_t len, const void *data, mbuf_how_t how) argument [all...] |
H A D | uipc_mbuf2.c | 595 m_tag_copy(struct m_tag *t, int how) argument 601 p = m_tag_alloc(t->m_tag_id, t->m_tag_type, t->m_tag_len, how); 613 if (mac_mbuf_tag_init(p, how) != 0) { 631 m_tag_copy_chain(struct mbuf *to, struct mbuf *from, int how) argument 640 t = m_tag_copy(p, how);
|
H A D | uipc_mbuf.c | 519 * Sample factor for how often to record a trace. This is overwritable 2943 /* how many objects will we cut the page into? */ 3268 #define _MGET(m, how, type) ((m) = _M_GET(how, type)) 3269 #define _MGETHDR(m, how, type) ((m) = _M_GETHDR(how, type)) 3659 m_dup_pkthdr(struct mbuf *to, struct mbuf *from, int how) argument 3678 return (m_tag_copy_chain(to, from, how)); 4039 * elements that can be allocated so that we know how many 4206 m_getpackets(int num_needed, int num_with_pkthdrs, int how) argument 4219 m_getpackethdrs(int num_needed, int how) argument 4455 m_prepend(struct mbuf *m, int len, int how) argument 4481 m_prepend_2(struct mbuf *m, int len, int how) argument 5294 m_copyback_cow(struct mbuf *m0, int off, int len, const void *cp, int how) argument 5318 m_makewritable(struct mbuf **mp, int off, int len, int how) argument 5350 m_copyback0(struct mbuf **mp0, int off, int len, const void *vp, int flags, int how) argument 5571 m_dup(struct mbuf *m, int how) argument 5858 m_defrag_offset(struct mbuf *m0, u_int32_t off, int how) argument 5927 m_defrag(struct mbuf *m0, int how) argument [all...] |
H A D | uipc_socket.c | 3027 soshutdown(struct socket *so, int how) argument 3031 switch (how) { 3040 error = soshutdownlock(so, how); 3053 soshutdownlock(struct socket *so, int how) argument 3058 sflt_notify(so, sock_evt_shutdown, &how); 3060 if (how != SHUT_WR) { 3069 if (how != SHUT_RD) { 3814 * precisely how much we copied, rather than something useful 4144 int how; local 4149 how 5049 sockaddrentry_alloc(int how) argument 5071 sockaddrentry_dup(const struct sockaddr_entry *src_se, int how) argument 5093 sockaddrlist_alloc(int how) argument 5139 sockaddrlist_dup(const struct sockaddr_list *src_sl, int how) argument [all...] |
H A D | kpi_socket.c | 878 sock_shutdown(socket_t sock, int how) argument 883 return (soshutdown(sock, how));
|
H A D | uipc_syscalls.c | 1776 error = soshutdown((struct socket *)so, uap->how); 2291 alloc_sendpkt(int how, size_t pktlen, unsigned int *maxchunks, argument 2307 *m = m_getpackets_internal(&needed, 1, how, 0, M16KCLBYTES); 2311 *m = m_getpackets_internal(&needed, 1, how, 0, MBIGCLBYTES);
|
/xnu-2422.115.4/bsd/sys/ |
H A D | kpi_mbuf.h | 365 @param how Blocking or non-blocking. 370 extern errno_t mbuf_get(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf); 377 @param how Blocking or non-blocking. 382 extern errno_t mbuf_gethdr(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf); 391 @param how Blocking or non-blocking. 410 extern errno_t mbuf_attachcluster(mbuf_how_t how, mbuf_type_t type, 424 @param how Blocking or non-blocking. 437 extern errno_t mbuf_alloccluster(mbuf_how_t how, size_t *size, caddr_t *addr); 457 @param how Blocking or non-blocking. 477 extern errno_t mbuf_getcluster(mbuf_how_t how, mbuf_type_ [all...] |
H A D | mbuf.h | 605 * MGET(struct mbuf *m, int how, int type) 608 * MGETHDR(struct mbuf *m, int how, int type) 619 #define MGET(m, how, type) ((m) = m_get((how), (type))) 621 #define MGETHDR(m, how, type) ((m) = m_gethdr((how), (type))) 625 * MCLALLOC(caddr_t p, int how) allocates an mbuf cluster. 640 #define MCLALLOC(p, how) ((p) = m_mclalloc(how)) 644 #define MCLGET(m, how) (( [all...] |
H A D | kpi_socket.h | 278 @param msg The msg describing how the data should be received. 294 @param msg The msg describing how the data should be received. May 314 @param msg The msg describing how the data should be sent. Any 329 @param msg The msg describing how the data should be sent. The 346 @param how SHUT_RD - shutdown receive. 351 extern errno_t sock_shutdown(socket_t so, int how);
|
H A D | socketvar.h | 785 extern int soshutdown(struct socket *so, int how); 786 extern int soshutdownlock(struct socket *so, int how);
|
/xnu-2422.115.4/bsd/net/ |
H A D | flowadv.c | 148 flowadv_alloc_entry(int how) argument 152 fce = (how == M_WAITOK) ? zalloc(fadv_zone) : zalloc_noblock(fadv_zone);
|
H A D | if_llreach.c | 478 iflr_alloc(int how) argument 482 lr = (how == M_WAITOK) ? zalloc(iflr_zone) : zalloc_noblock(iflr_zone);
|
/xnu-2422.115.4/bsd/netinet/ |
H A D | flow_divert.c | 604 flow_divert_update_closed_state(struct flow_divert_pcb *fd_cb, int how, Boolean tunnel) argument 606 if (how != SHUT_RD) { 614 if (how != SHUT_WR) { 1028 flow_divert_send_close(struct flow_divert_pcb *fd_cb, int how) argument 1046 how = htonl(how); 1047 error = flow_divert_packet_append_tlv(packet, FLOW_DIVERT_TLV_HOW, sizeof(how), &how); 1049 FDLOG(LOG_ERR, fd_cb, "failed to add the how flag: %d", error); 1089 int how local 1529 int how; local [all...] |
H A D | mptcp_usrreq.c | 344 /* just asking how many there are? */ 370 /* just asking how many there are? */ 1117 mptcp_uiotombuf(struct uio *uio, int how, int space, uint32_t align, argument 1156 how, 1, M16KCLBYTES); 1159 how, 1, MBIGCLBYTES); 1162 how, 1, MCLBYTES); 1164 mb = m_gethdr(how, MT_DATA);
|
H A D | in_mcast.c | 1795 * has asked for, but we always tell userland how big the 3329 in_multi_alloc(int how) argument 3333 inm = (how == M_WAITOK) ? zalloc(inm_zone) : zalloc_noblock(inm_zone); 3605 ipms_alloc(int how) argument 3609 ims = (how == M_WAITOK) ? zalloc(ipms_zone) : zalloc_noblock(ipms_zone); 3623 inms_alloc(int how) argument 3627 inms = (how == M_WAITOK) ? zalloc(inms_zone) :
|
H A D | igmp.c | 571 igmp_domifattach(struct ifnet *ifp, int how) argument 578 igi = igi_alloc(how); 730 igi_alloc(int how) argument 734 igi = (how == M_WAITOK) ? zalloc(igi_zone) : zalloc_noblock(igi_zone); 1384 * IGMP daemons may not know how to use IP_RECVIF to determine 1526 * IGMP daemons may not know how to use IP_RECVIF to determine 3167 * If we have sources, we don't know how many yet.
|
/xnu-2422.115.4/bsd/netinet6/ |
H A D | nd6_prproxy.c | 256 nd6_ndprl_alloc(int how) argument 260 ndprl = (how == M_WAITOK) ? zalloc(ndprl_zone) : 1023 * how to forward the NA reply later on (if/when it arrives.) 1267 nd6_solsrc_alloc(int how) argument 1271 ssrc = (how == M_WAITOK) ? zalloc(solsrc_zone) : 1448 nd6_soltgt_alloc(int how) argument 1452 soltgt = (how == M_WAITOK) ? zalloc(soltgt_zone) :
|
H A D | frag6.c | 1033 ip6q_alloc(int how) argument 1046 t = m_get(how, MT_FTABLE); 1065 ip6af_alloc(int how) argument 1078 t = m_get(how, MT_FTABLE);
|
H A D | in6_mcast.c | 1721 * has asked for, but we always tell userland how big the 3125 in6_multi_alloc(int how) argument 3129 in6m = (how == M_WAITOK) ? zalloc(in6m_zone) : 3378 in6_multi_mship_alloc(int how) argument 3382 imm = (how == M_WAITOK) ? zalloc(imm_zone) : zalloc_noblock(imm_zone); 3424 ip6ms_alloc(int how) argument 3428 i6ms = (how == M_WAITOK) ? zalloc(ip6ms_zone) : 3443 in6ms_alloc(int how) argument 3447 in6ms = (how == M_WAITOK) ? zalloc(in6ms_zone) :
|
H A D | mld6.c | 554 mld_domifattach(struct ifnet *ifp, int how) argument 561 mli = mli_alloc(how); 719 mli_alloc(int how) argument 723 mli = (how == M_WAITOK) ? zalloc(mli_zone) : zalloc_noblock(mli_zone); 2825 * If we have sources, we don't know how many yet.
|
/xnu-2422.115.4/bsd/net/pktsched/ |
H A D | pktsched_cbq.c | 130 cbq_alloc(struct ifnet *ifp, int how, boolean_t altq) argument 135 cbqp = (how == M_WAITOK) ? zalloc(cbq_zone) : zalloc_noblock(cbq_zone);
|
H A D | pktsched_fairq.c | 202 fairq_alloc(struct ifnet *ifp, int how, boolean_t altq) argument 206 fif = (how == M_WAITOK) ?
|
H A D | pktsched_priq.c | 144 priq_alloc(struct ifnet *ifp, int how, boolean_t altq) argument 148 pif = (how == M_WAITOK) ? zalloc(priq_zone) : zalloc_noblock(priq_zone);
|