Searched refs:M_ZERO (Results 1 - 25 of 26) sorted by relevance

12

/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dmalloc.h83 #define M_ZERO 0x0004 /* bzero the allocation */ macro
/macosx-10.5.8/xnu-1228.15.4/security/
H A Dmac_socket.c414 MALLOC(buffer, char *, mac->m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
451 MALLOC(buffer, char *, mac->m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
H A Dmac_base.c607 mpc->mpc_labelname_count, M_MACTEMP, M_WAITOK | M_ZERO);
1322 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
1368 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
1794 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
2100 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
H A Dmac_net.c453 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/
H A Ddtrace_ptss.c153 struct dtrace_ptss_page* ptss_page = _MALLOC(sizeof(struct dtrace_ptss_page), M_TEMP, M_ZERO | M_WAITOK);
H A Ddtrace_glue.c393 wrap_timer_call_t *wrapTC = _MALLOC(sizeof(wrap_timer_call_t), M_TEMP, M_ZERO | M_WAITOK);
437 sizeof(cyc_omni_handler_t), M_TEMP, M_ZERO | M_WAITOK);
507 wrap_thread_call_t *wrapTC = _MALLOC(sizeof(wrap_thread_call_t), M_TEMP, M_ZERO | M_WAITOK);
602 for (i = 0; i < NSOFT_STATES; ++i) soft[i] = _MALLOC(size, M_TEMP, M_ZERO | M_WAITOK);
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dnfs_gss.c295 MALLOC(cp, struct nfs_gss_clnt_ctx *, sizeof(*cp), M_TEMP, M_WAITOK|M_ZERO);
350 MALLOC(cp, struct nfs_gss_clnt_ctx *, sizeof(*cp), M_TEMP, M_WAITOK|M_ZERO);
471 MALLOC(gsp, struct gss_seq *, sizeof(*gsp), M_TEMP, M_WAITOK|M_ZERO);
670 MALLOC(cp->gss_clnt_verf, u_char *, verflen, M_TEMP, M_WAITOK|M_ZERO);
1033 nfsm_rndup((cp->gss_clnt_seqwin + 7) / 8), M_TEMP, M_WAITOK|M_ZERO);
1460 M_TEMP, M_WAITOK|M_ZERO);
1772 MALLOC(cp, struct nfs_gss_svc_ctx *, sizeof(*cp), M_TEMP, M_WAITOK|M_ZERO);
2264 nfsm_rndup((cp->gss_svc_seqwin + 7) / 8), M_TEMP, M_WAITOK|M_ZERO);
H A Dnfs_lock.c454 M_TEMP, M_WAITOK | M_ZERO);
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkern_malloc.c573 if (flags & M_ZERO)
H A Dposix_sem.c466 MALLOC(pinfo, struct pseminfo *, sizeof(struct pseminfo), M_SHM, M_WAITOK|M_ZERO);
528 MALLOC(pnode, struct psemnode *, sizeof(struct psemnode), M_SHM, M_WAITOK|M_ZERO);
539 MALLOC(pcp, struct psemcache *, sizeof(struct psemcache), M_SHM, M_WAITOK|M_ZERO);
H A Dposix_shm.c476 MALLOC(pinfo, struct pshminfo *, sizeof(struct pshminfo), M_SHM, M_WAITOK|M_ZERO);
559 MALLOC(pnode, struct pshmnode *, sizeof(struct pshmnode), M_SHM, M_WAITOK|M_ZERO);
570 MALLOC(pcp, struct pshmcache *, sizeof(struct pshmcache), M_SHM, M_WAITOK|M_ZERO);
H A Dsysv_sem.c253 M_SYSVSEM, M_WAITOK | M_ZERO);
269 * "un_proc" set to 0 (i.e. NULL) by the M_ZERO flag to MALLOC() above,
315 M_SYSVSEM, M_WAITOK | M_ZERO);
349 * "sem_base" and "sem_perm.mode" set to 0 (i.e. NULL) by the M_ZERO
396 M_SYSVSEM, M_WAITOK | M_ZERO);
H A Dkern_core.c240 MALLOC(alloced_name, char *, MAXPATHLEN, M_TEMP, M_NOWAIT | M_ZERO);
H A Dtty_ptmx.c331 MALLOC(new_ptmx_ioctl, struct ptmx_ioctl *, sizeof(struct ptmx_ioctl), M_TTYS, M_WAITOK|M_ZERO);
354 MALLOC(new_pis_ioctl_list, struct ptmx_ioctl **, sizeof(struct ptmx_ioctl *) * (_state.pis_total + PTMX_GROW_VECTOR), M_TTYS, M_WAITOK|M_ZERO);
H A Dkern_subr.c443 (u_long)hashsize * sizeof(*hashtbl), type, M_WAITOK|M_ZERO);
H A Dkern_credential.c782 MALLOC(kip, struct kauth_identity *, sizeof(*kip), M_KAUTH, M_WAITOK | M_ZERO);
2356 M_KAUTH, M_WAITOK | M_ZERO);
H A Dsys_generic.c997 MALLOC(sel->ibits, u_int32_t *, nbytes, M_TEMP, M_WAITOK | M_ZERO);
1000 MALLOC(sel->obits, u_int32_t *, nbytes, M_TEMP, M_WAITOK | M_ZERO);
H A Dmcache.c273 malloc_wait | M_ZERO);
H A Duipc_mbuf.c895 M_TEMP, M_WAITOK | M_ZERO);
1024 M_TEMP, M_WAITOK | M_ZERO);
1033 M_WAITOK | M_ZERO);
4938 M_WAITOK | M_ZERO);
H A Dkern_proc.c1476 MALLOC(l, struct lctx *, sizeof(struct lctx), M_LCTX, M_WAITOK|M_ZERO);
H A Dtty.c2564 MALLOC(tp, struct tty *, sizeof(struct tty), M_TTYS, M_WAITOK|M_ZERO);
H A Duipc_syscalls.c1861 MALLOC(sa, struct sockaddr *, len, M_SONAME, M_WAITOK | M_ZERO);
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dip_dummynet.c921 q = _MALLOC(sizeof(*q), M_DUMMYNET, M_DONTWAIT | M_ZERO);
1603 M_DUMMYNET, M_DONTWAIT | M_ZERO);
1665 x = _MALLOC(sizeof(struct dn_pipe), M_DUMMYNET, M_DONTWAIT | M_ZERO) ;
1720 x = _MALLOC(sizeof(struct dn_flow_set), M_DUMMYNET, M_DONTWAIT | M_ZERO);
H A Dip_fw2.c1027 M_IPFW, M_NOWAIT | M_ZERO);
1061 r = _MALLOC(sizeof *r, M_IPFW, M_NOWAIT | M_ZERO);
/macosx-10.5.8/xnu-1228.15.4/bsd/net/
H A Dif.c454 ifc->ifc_units = _MALLOC(len, M_CLONE, M_WAITOK | M_ZERO);

Completed in 317 milliseconds

12