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

123

/darwin-on-arm/xnu/bsd/security/audit/
H A Daudit_bsd.h101 #ifdef M_ZERO
102 #undef M_ZERO macro
104 #define M_ZERO 0x0004 /* bzero the allocation */ macro
H A Daudit_session.c854 se = malloc(sizeof(au_sentry_t), M_AU_SESSION, M_WAITOK | M_ZERO);
1055 HASH_TABLE_SIZE, M_AU_SESSION, M_WAITOK | M_ZERO);
1063 M_AU_SESSION, M_WAITOK|M_ZERO);
1529 ase = malloc(sizeof (*ase), M_AUDIT_SDEV_ENTRY, M_NOWAIT | M_ZERO);
1606 asdev = malloc(sizeof (*asdev), M_AUDIT_SDEV, M_WAITOK | M_ZERO);
H A Daudit_bsd.c173 * If the M_ZERO flag is set then zero out the buffer.
199 if (flags & M_ZERO)
/darwin-on-arm/xnu/bsd/net/
H A Dif_mib.c182 M_NOWAIT | M_ZERO)) == NULL) {
H A Dif_pflog.c150 M_DEVBUF, M_WAITOK|M_ZERO)) == NULL) {
/darwin-on-arm/xnu/bsd/sys/
H A Dmalloc.h83 #define M_ZERO 0x0004 /* bzero the allocation */ macro
/darwin-on-arm/xnu/security/
H A Dmac_socket.c408 MALLOC(buffer, char *, mac->m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
445 MALLOC(buffer, char *, mac->m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
H A Dmac_base.c615 mpc->mpc_labelname_count, M_MACTEMP, M_WAITOK | M_ZERO);
1344 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
1393 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
1840 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
2197 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);
/darwin-on-arm/xnu/bsd/dev/dtrace/
H A Ddtrace_ptss.c157 struct dtrace_ptss_page* ptss_page = _MALLOC(sizeof(struct dtrace_ptss_page), M_TEMP, M_ZERO | M_WAITOK);
H A Ddtrace_glue.c397 wrap_timer_call_t *wrapTC = _MALLOC(sizeof(wrap_timer_call_t), M_TEMP, M_ZERO | M_WAITOK);
441 sizeof(cyc_omni_handler_t), M_TEMP, M_ZERO | M_WAITOK);
511 wrap_thread_call_t *wrapTC = _MALLOC(sizeof(wrap_thread_call_t), M_TEMP, M_ZERO | M_WAITOK);
606 for (i = 0; i < NSOFT_STATES; ++i) soft[i] = _MALLOC(size, M_TEMP, M_ZERO | M_WAITOK);
/darwin-on-arm/xnu/bsd/kern/
H A Dbsd_stubs.c360 MALLOC(newlock, devsw_lock_t, sizeof(struct devsw_lock), M_TEMP, M_WAITOK | M_ZERO);
H A Dposix_sem.c436 MALLOC(pcp, struct psemcache *, sizeof(struct psemcache), M_SHM, M_WAITOK|M_ZERO);
442 MALLOC(new_pinfo, struct pseminfo *, sizeof(struct pseminfo), M_SHM, M_WAITOK|M_ZERO);
484 MALLOC(new_pnode, struct psemnode *, sizeof(struct psemnode), M_SHM, M_WAITOK|M_ZERO);
H A Dposix_shm.c456 MALLOC(pcp, struct pshmcache *, sizeof(struct pshmcache), M_SHM, M_WAITOK|M_ZERO);
462 MALLOC(new_pinfo, struct pshminfo *, sizeof(struct pshminfo), M_SHM, M_WAITOK|M_ZERO);
471 MALLOC(new_pnode, struct pshmnode *, sizeof(struct pshmnode), M_SHM, M_WAITOK|M_ZERO);
H A Dsysv_sem.c288 M_SYSVSEM, M_WAITOK | M_ZERO);
304 * "un_proc" set to 0 (i.e. NULL) by the M_ZERO flag to MALLOC() above,
350 M_SYSVSEM, M_WAITOK | M_ZERO);
384 * "sem_base" and "sem_perm.mode" set to 0 (i.e. NULL) by the M_ZERO
431 M_SYSVSEM, M_WAITOK | M_ZERO);
H A Dkern_core.c274 MALLOC(alloced_name, char *, MAXPATHLEN, M_TEMP, M_NOWAIT | M_ZERO);
H A Dkern_malloc.c601 if (flags & M_ZERO)
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_upcall.c369 MALLOC(arg, struct nfsrv_uc_arg *, sizeof (struct nfsrv_uc_arg), M_NFSSVC, M_WAITOK | M_ZERO);
H A Dnfs_gss.c342 MALLOC(cp, struct nfs_gss_clnt_ctx *, sizeof(*cp), M_TEMP, M_WAITOK|M_ZERO);
393 MALLOC(cp, struct nfs_gss_clnt_ctx *, sizeof(*cp), M_TEMP, M_WAITOK|M_ZERO);
520 MALLOC(gsp, struct gss_seq *, sizeof(*gsp), M_TEMP, M_WAITOK|M_ZERO);
722 MALLOC(cp->gss_clnt_verf, u_char *, verflen, M_TEMP, M_WAITOK|M_ZERO);
1096 nfsm_rndup((cp->gss_clnt_seqwin + 7) / 8), M_TEMP, M_WAITOK|M_ZERO);
1677 M_TEMP, M_WAITOK|M_ZERO);
2000 MALLOC(cp, struct nfs_gss_svc_ctx *, sizeof(*cp), M_TEMP, M_WAITOK|M_ZERO);
2492 nfsm_rndup((cp->gss_svc_seqwin + 7) / 8), M_TEMP, M_WAITOK|M_ZERO);
H A Dnfs4_subs.c1802 MALLOC(fsp->np_components, char **, fsp->np_compcount * sizeof(char*), M_TEMP, M_WAITOK|M_ZERO);
1827 MALLOC(fsp->np_components[comp], char *, val+1, M_TEMP, M_WAITOK|M_ZERO);
1841 MALLOC(nfslsp->nl_locations, struct nfs_fs_location **, nfslsp->nl_numlocs * sizeof(struct nfs_fs_location*), M_TEMP, M_WAITOK|M_ZERO);
1848 MALLOC(fsl, struct nfs_fs_location *, sizeof(struct nfs_fs_location), M_TEMP, M_WAITOK|M_ZERO);
1858 MALLOC(fsl->nl_servers, struct nfs_fs_server **, fsl->nl_servcount * sizeof(struct nfs_fs_server*), M_TEMP, M_WAITOK|M_ZERO);
1863 MALLOC(fss, struct nfs_fs_server *, sizeof(struct nfs_fs_server), M_TEMP, M_WAITOK|M_ZERO);
1872 MALLOC(fss->ns_name, char *, val+1, M_TEMP, M_WAITOK|M_ZERO);
1881 MALLOC(fss->ns_addresses, char **, sizeof(char *), M_TEMP, M_WAITOK|M_ZERO);
1885 MALLOC(fss->ns_addresses[0], char *, val+1, M_TEMP, M_WAITOK|M_ZERO);
1901 MALLOC(fsp->np_components, char **, fsp->np_compcount * sizeof(char*), M_TEMP, M_WAITOK|M_ZERO);
[all...]
H A Dnfs_vfsops.c2031 MALLOC(nfsp2.np_components, char **, nfsp2.np_compcount*sizeof(char*), M_TEMP, M_WAITOK|M_ZERO);
2046 MALLOC(nfsp2.np_components[newcomp], char *, q-p+1, M_TEMP, M_WAITOK|M_ZERO);
2137 MALLOC(fspath.np_components, char **, fspath.np_compcount*sizeof(char*), M_TEMP, M_WAITOK|M_ZERO);
2144 MALLOC(fspath.np_components[comp], char *, slen+1, M_TEMP, M_WAITOK|M_ZERO);
2309 MALLOC(fspath2.np_components, char **, fspath2.np_compcount*sizeof(char*), M_TEMP, M_WAITOK|M_ZERO);
2316 MALLOC(fspath2.np_components[comp2], char *, slen+1, M_TEMP, M_WAITOK|M_ZERO);
2908 MALLOC(nmp->nm_fh, fhandle_t *, sizeof(fhandle_t), M_TEMP, M_WAITOK|M_ZERO);
2927 MALLOC(nmp->nm_locations.nl_locations, struct nfs_fs_location **, nmp->nm_locations.nl_numlocs * sizeof(struct nfs_fs_location*), M_TEMP, M_WAITOK|M_ZERO);
2932 MALLOC(fsl, struct nfs_fs_location *, sizeof(struct nfs_fs_location), M_TEMP, M_WAITOK|M_ZERO);
2941 MALLOC(fsl->nl_servers, struct nfs_fs_server **, fsl->nl_servcount * sizeof(struct nfs_fs_server*), M_TEMP, M_WAITOK|M_ZERO);
[all...]
/darwin-on-arm/xnu/bsd/net/classq/
H A Dclassq_red.c550 w = _MALLOC(sizeof (struct wtab), M_DEVBUF, M_WAITOK|M_ZERO);
H A Dclassq_sfb.c376 M_WAITOK|M_ZERO)) == NULL) {
383 M_WAITOK|M_ZERO)) == NULL) {
/darwin-on-arm/xnu/bsd/netinet/
H A Din_tclass.c224 tfp = _MALLOC(sizeof (struct tclass_for_proc), M_TEMP, M_NOWAIT|M_ZERO);
575 buf = _MALLOC(len, M_TEMP, M_WAITOK | M_ZERO);
/darwin-on-arm/xnu/bsd/netinet6/
H A Din6_ifattach.c774 q = (caddr_t)_MALLOC(n, M_IFADDR, M_WAITOK|M_ZERO);
807 q = (caddr_t)_MALLOC(n, M_IFADDR, M_WAITOK|M_ZERO);

Completed in 202 milliseconds

123