/darwin-on-arm/xnu/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) 146 mac_zalloc(zone_t zone, int how) argument 149 if (how == M_WAITOK)
|
/darwin-on-arm/xnu/bsd/kern/ |
H A D | kpi_mbuf.c | 97 errno_t mbuf_get(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf) argument 100 *mbuf = m_get(how, type); 105 errno_t mbuf_gethdr(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf) argument 108 *mbuf = m_gethdr(how, type); 114 mbuf_attachcluster(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf, argument 122 extfree, extsize, extarg, how)) == NULL) 129 mbuf_alloccluster(mbuf_how_t how, size_t *size, caddr_t *addr) argument 140 if (*size <= MCLBYTES && (*addr = m_mclalloc(how)) != NULL) 143 (*addr = m_bigalloc(how)) != NULL) 146 (*addr = m_16kalloc(how)) ! 175 mbuf_getcluster(mbuf_how_t how, mbuf_type_t type, size_t size, mbuf_t* mbuf) argument 219 mbuf_mclget(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf) argument 248 mbuf_getpacket(mbuf_how_t how, mbuf_t *mbuf) argument 301 mbuf_copym(const mbuf_t src, size_t offset, size_t len, mbuf_how_t how, mbuf_t *new_mbuf) argument 310 mbuf_dup(const mbuf_t src, mbuf_how_t how, mbuf_t *new_mbuf) argument 318 mbuf_prepend(mbuf_t *orig, size_t len, mbuf_how_t how) argument 326 mbuf_split(mbuf_t src, size_t offset, mbuf_how_t how, mbuf_t *new_mbuf) argument 832 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 956 mbuf_allocpacket(mbuf_how_t how, size_t packetlen, unsigned int *maxchunks, mbuf_t *mbuf) argument 984 mbuf_allocpacket_list(unsigned int numpkts, mbuf_how_t how, size_t packetlen, unsigned int *maxchunks, mbuf_t *mbuf) argument 1024 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 | 603 m_tag_copy(struct m_tag *t, int how) argument 609 p = m_tag_alloc(t->m_tag_id, t->m_tag_type, t->m_tag_len, how); 621 if (mac_mbuf_tag_init(p, how) != 0) { 647 m_tag_copy_chain(struct mbuf *to, struct mbuf *from, int how) argument 656 t = m_tag_copy(p, how);
|
H A D | uipc_mbuf.c | 490 * Sample factor for how often to record a trace. This is overwritable 2895 /* how many objects will we cut the page into? */ 3221 #define _MGET(m, how, type) ((m) = _M_GET(how, type)) 3222 #define _MGETHDR(m, how, type) ((m) = _M_GETHDR(how, type)) 3601 m_dup_pkthdr(struct mbuf *to, struct mbuf *from, int how) argument 3610 return (m_tag_copy_chain(to, from, how)); 3932 * elements that can be allocated so that we know how many 4099 m_getpackets(int num_needed, int num_with_pkthdrs, int how) argument 4112 m_getpackethdrs(int num_needed, int how) argument 4345 m_prepend(struct mbuf *m, int len, int how) argument 4371 m_prepend_2(struct mbuf *m, int len, int how) argument 5167 m_copyback_cow(struct mbuf *m0, int off, int len, const void *cp, int how) argument 5191 m_makewritable(struct mbuf **mp, int off, int len, int how) argument 5223 m_copyback0(struct mbuf **mp0, int off, int len, const void *vp, int flags, int how) argument 5444 m_dup(struct mbuf *m, int how) argument 5729 m_defrag_offset(struct mbuf *m0, u_int32_t off, int how) argument 5798 m_defrag(struct mbuf *m0, int how) argument [all...] |
H A D | uipc_socket.c | 2766 soshutdown(struct socket *so, int how) argument 2770 switch (how) { 2779 error = soshutdownlock(so, how); 2792 soshutdownlock(struct socket *so, int how) argument 2797 sflt_notify(so, sock_evt_shutdown, &how); 2799 if (how != SHUT_WR) { 2808 if (how != SHUT_RD) { 3393 * precisely how much we copied, rather than something useful 3697 int how; local 3702 how [all...] |
H A D | kpi_socket.c | 921 int how) 924 return soshutdown(sock, how); 919 sock_shutdown( socket_t sock, int how) argument
|
H A D | uipc_syscalls.c | 1566 error = soshutdown((struct socket *)so, uap->how); 2007 alloc_sendpkt(int how, size_t pktlen, unsigned int *maxchunks, argument 2023 *m = m_getpackets_internal(&needed, 1, how, 0, M16KCLBYTES); 2027 *m = m_getpackets_internal(&needed, 1, how, 0, MBIGCLBYTES);
|
H A D | kern_descrip.c | 4709 * uap->how (Un)Lock bits, including type 4728 int how = uap->how; local 4747 if (how & LOCK_UN) { 4753 if (how & LOCK_EX) 4755 else if (how & LOCK_SH) 4767 if (how & LOCK_NB) {
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | kpi_mbuf.h | 364 @param how Blocking or non-blocking. 369 extern errno_t mbuf_get(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf); 376 @param how Blocking or non-blocking. 381 extern errno_t mbuf_gethdr(mbuf_how_t how, mbuf_type_t type, mbuf_t *mbuf); 390 @param how Blocking or non-blocking. 409 extern errno_t mbuf_attachcluster(mbuf_how_t how, mbuf_type_t type, 423 @param how Blocking or non-blocking. 436 extern errno_t mbuf_alloccluster(mbuf_how_t how, size_t *size, caddr_t *addr); 456 @param how Blocking or non-blocking. 476 extern errno_t mbuf_getcluster(mbuf_how_t how, mbuf_type_ [all...] |
H A D | mbuf.h | 386 * MGET(struct mbuf *m, int how, int type) 389 * MGETHDR(struct mbuf *m, int how, int type) 400 #define MGET(m, how, type) ((m) = m_get((how), (type))) 402 #define MGETHDR(m, how, type) ((m) = m_gethdr((how), (type))) 406 * MCLALLOC(caddr_t p, int how) allocates an mbuf cluster. 421 #define MCLALLOC(p, how) ((p) = m_mclalloc(how)) 425 #define MCLGET(m, how) (( [all...] |
H A D | kpi_socket.h | 261 @param msg The msg describing how the data should be received. 277 @param msg The msg describing how the data should be received. May 297 @param msg The msg describing how the data should be sent. Any 312 @param msg The msg describing how the data should be sent. The 329 @param how SHUT_RD - shutdown receive. 334 extern errno_t sock_shutdown(socket_t so, int how);
|
H A D | socketvar.h | 736 extern int soshutdown(struct socket *so, int how); 737 extern int soshutdownlock(struct socket *so, int how);
|
/darwin-on-arm/xnu/bsd/netinet6/ |
H A D | nd6_prproxy.c | 256 nd6_ndprl_alloc(int how) argument 260 ndprl = (how == M_WAITOK) ? zalloc(ndprl_zone) : 874 * how to forward the NA reply later on (if/when it arrives.) 1119 nd6_solsrc_alloc(int how) argument 1123 ssrc = (how == M_WAITOK) ? zalloc(solsrc_zone) : 1300 nd6_soltgt_alloc(int how) argument 1304 soltgt = (how == M_WAITOK) ? zalloc(soltgt_zone) :
|
H A D | in6_mcast.c | 1699 * has asked for, but we always tell userland how big the 3082 in6_multi_alloc(int how) argument 3086 in6m = (how == M_WAITOK) ? zalloc(in6m_zone) : 3335 in6_multi_mship_alloc(int how) argument 3339 imm = (how == M_WAITOK) ? zalloc(imm_zone) : zalloc_noblock(imm_zone); 3381 ip6ms_alloc(int how) argument 3385 i6ms = (how == M_WAITOK) ? zalloc(ip6ms_zone) : 3400 in6ms_alloc(int how) argument 3404 in6ms = (how == M_WAITOK) ? zalloc(in6ms_zone) :
|
H A D | nd6_rtr.c | 2644 nddr_alloc(int how) argument 2648 dr = (how == M_WAITOK) ? zalloc(nddr_zone) : zalloc_noblock(nddr_zone); 2755 ndpr_alloc(int how) argument 2759 pr = (how == M_WAITOK) ? zalloc(ndpr_zone) : zalloc_noblock(ndpr_zone); 3901 int how) 3994 if (how) 3997 if ((error = in6_update_ifa(ifp, &ifra, NULL, updateflags, how)) != 0) 3898 in6_tmpifadd( const struct in6_ifaddr *ia0, int forcegen, int how) argument
|
H A D | in6.c | 1447 struct in6_ifaddr *ia, int flags, int how) 1594 ia = in6_ifaddr_alloc(how); 1949 * NOTE: this is how stf0 gets initialized 3713 in6_ifaddr_alloc(int how) argument 3717 in6ifa = (how == M_WAITOK) ? zalloc(in6ifa_zone) : 1446 in6_update_ifa(struct ifnet *ifp, struct in6_aliasreq *ifra, struct in6_ifaddr *ia, int flags, int how) argument
|
H A D | mld6.c | 480 mld_domifattach(struct ifnet *ifp, int how) argument 487 mli = mli_alloc(how); 641 mli_alloc(int how) argument 645 mli = (how == M_WAITOK) ? zalloc(mli_zone) : zalloc_noblock(mli_zone); 2635 * If we have sources, we don't know how many yet.
|
/darwin-on-arm/xnu/bsd/net/ |
H A D | if_llreach.c | 476 iflr_alloc(int how) argument 480 lr = (how == M_WAITOK) ? zalloc(iflr_zone) : zalloc_noblock(iflr_zone);
|
/darwin-on-arm/xnu/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 | 143 priq_alloc(struct ifnet *ifp, int how, boolean_t altq) argument 147 pif = (how == M_WAITOK) ? zalloc(priq_zone) : zalloc_noblock(priq_zone);
|
H A D | pktsched_tcq.c | 115 tcq_alloc(struct ifnet *ifp, int how, boolean_t altq) argument 119 tif = (how == M_WAITOK) ? zalloc(tcq_zone) : zalloc_noblock(tcq_zone);
|
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | in_mcast.c | 1763 * has asked for, but we always tell userland how big the 3273 in_multi_alloc(int how) argument 3277 inm = (how == M_WAITOK) ? zalloc(inm_zone) : zalloc_noblock(inm_zone); 3549 ipms_alloc(int how) argument 3553 ims = (how == M_WAITOK) ? zalloc(ipms_zone) : zalloc_noblock(ipms_zone); 3567 inms_alloc(int how) argument 3571 inms = (how == M_WAITOK) ? zalloc(inms_zone) :
|
H A D | igmp.c | 540 igmp_domifattach(struct ifnet *ifp, int how) argument 547 igi = igi_alloc(how); 698 igi_alloc(int how) argument 702 igi = (how == M_WAITOK) ? zalloc(igi_zone) : zalloc_noblock(igi_zone); 1336 * IGMP daemons may not know how to use IP_RECVIF to determine 1474 * IGMP daemons may not know how to use IP_RECVIF to determine 3027 * If we have sources, we don't know how many yet.
|