Home
last modified time | relevance | path

Searched refs:_MALLOC (Results 1 – 25 of 27) sorted by relevance

12

/xnu-8019.80.24/bsd/netkey/
H A Dkeydb.c113 p = (struct secashead *)_MALLOC(sizeof(*p), M_SECA, M_NOWAIT | M_ZERO); in keydb_newsecashead()
116 p = (struct secashead *)_MALLOC(sizeof(*p), M_SECA, in keydb_newsecashead()
149 p = (struct secasvar *)_MALLOC(sizeof(*p), M_SECA, M_WAITOK);
246 p = (struct secreg *)_MALLOC(sizeof(*p), M_SECA, M_WAITOK);
H A Dkeysock.c392 kp = (struct keycb *)_MALLOC(sizeof(*kp), M_PCB, in key_attach()
H A Dkey.c355 ((p) = (t) _MALLOC((n), M_SECA, M_WAITOK))
357 ((p) = (t) _MALLOC((n), M_SECA, M_NOWAIT))
363 ((p) = (t)_MALLOC((u_int32_t)(n), M_SECA, M_WAITOK)); \
369 ((p) = (t)_MALLOC((u_int32_t)(n), M_SECA, M_NOWAIT)); \
/xnu-8019.80.24/bsd/sys/
H A Dmalloc.h154 #define _MALLOC(size, type, flags) \ macro
197 (space) = (cast)_MALLOC(size, type, flags)
208 extern void *_MALLOC(
/xnu-8019.80.24/bsd/net/
H A Dbpf_compat.h74 #define malloc(size, type, canwait) _MALLOC(size, type, canwait)
H A Dradix.h203 #define R_Malloc(p, t, n) (p = (t) _MALLOC((uint32_t)(n), M_RTABLE, M_WAITOK))
H A Dif_stf.c311 sc = _MALLOC(sizeof(struct stf_softc), M_DEVBUF, M_WAITOK | M_ZERO); in stfattach()
H A Dpf_ioctl.c289 s##_un = _MALLOC(sizeof (*s##_un), M_TEMP, M_WAITOK|M_ZERO); \
320 (v) = _MALLOC(sizeof (*(v)), M_TEMP, M_WAITOK|M_ZERO); \
1322 _MALLOC(sizeof(caddr_t) * in pf_setup_pfsync_matching()
H A Dbpf.c474 new_dtab = (struct bpf_d **)_MALLOC( in bpf_make_dev_t()
H A Dkpi_interface.c2876 ifc = _MALLOC(sizeof(struct if_clone) + IFNAMSIZ + 1, M_CLONE, in ifnet_clone_attach()
H A Dif_bridge.c6554 sc->sc_rthash = _MALLOC(sizeof(*sc->sc_rthash) * BRIDGE_RTHASH_SIZE,
6606 new_rthash = _MALLOC(sizeof(*sc->sc_rthash) * new_rthash_size,
H A Dif_bond.c2177 _MALLOC(sizeof(*new_array) * ifb->ifb_port_count, M_BOND, M_WAITOK); in bond_add_interface()
/xnu-8019.80.24/bsd/dev/dtrace/
H A Ddtrace_glue.c449 _MALLOC(sizeof(cyc_list_t) + NCPU * sizeof(wrap_timer_call_t), M_TEMP, M_ZERO | M_WAITOK); in cyclic_add_omni()
757 return (void *)_MALLOC(bufsize, M_TEMP, M_WAITOK); in kmem_cache_alloc()
H A Dblist.c78 #define malloc _MALLOC
/xnu-8019.80.24/bsd/netinet/
H A Draw_ip.c1209 inp_list = _MALLOC(n * sizeof *inp_list, M_TEMP, M_WAITOK);
1316 inp_list = _MALLOC(n * sizeof *inp_list, M_TEMP, M_WAITOK);
H A Dtcp_cache.c1613 tcp_cache = _MALLOC(sizeof(struct tcp_cache_head) * tcp_cache_size, in tcp_cache_init()
1619 tcp_heuristics = _MALLOC(sizeof(struct tcp_heuristics_head) * tcp_cache_size, in tcp_cache_init()
H A Din_pcblist.c357 inp_list = _MALLOC(n * sizeof(*inp_list), M_TEMP, M_WAITOK); in get_pcblist_n()
H A Dip_dummynet.c556 p = _MALLOC(new_size * sizeof(*p), M_DUMMYNET, M_DONTWAIT ); in heap_init()
1975 x->rq = _MALLOC((1 + x->rq_size) * sizeof(struct dn_flow_queue *), in alloc_hash()
H A Dudp_usrreq.c1167 inp_list = _MALLOC(n * sizeof(*inp_list), M_TEMP, M_WAITOK);
1290 inp_list = _MALLOC(n * sizeof(*inp_list), M_TEMP, M_WAITOK);
H A Din_mcast.c1686 immp = _MALLOC(sizeof(*immp) * IP_MIN_MEMBERSHIPS, M_IPMOPTS, in inp_findmoptions()
1693 imfp = _MALLOC(sizeof(struct in_mfilter) * IP_MIN_MEMBERSHIPS, in inp_findmoptions()
H A Dtcp_subr.c1953 inp_list = _MALLOC(n * sizeof(*inp_list), M_TEMP, M_WAITOK);
2137 inp_list = _MALLOC(n * sizeof(*inp_list), M_TEMP, M_WAITOK);
H A Din.c357 if ((ext = (struct in_ifextra *)_MALLOC(in_extra_bufsize, in in_domifattach()
/xnu-8019.80.24/bsd/netinet6/
H A Din6_ifattach.c747 ext = (struct in6_ifextra *)_MALLOC(in6_extra_bufsize, M_IFADDR, in in6_ifattach_prelim()
H A Din6_mcast.c1599 immp = _MALLOC(sizeof(*immp) * IPV6_MIN_MEMBERSHIPS, M_IP6MOPTS, in in6p_findmoptions()
1606 imfp = _MALLOC(sizeof(struct in6_mfilter) * IPV6_MIN_MEMBERSHIPS, in in6p_findmoptions()
/xnu-8019.80.24/bsd/skywalk/mem/
H A Dskmem_test.c237 mbary = _MALLOC(sizeof(struct mbuf *) * MAX_PH_ARY, M_TEMP, in skmem_buflet_tests()
1942 objary = _MALLOC(sizeof(void *) * objary_max, M_TEMP, in skmem_tests()

12