/darwin-on-arm/xnu/bsd/security/audit/ |
H A D | audit_bsd.h | 101 #ifdef M_ZERO 102 #undef M_ZERO macro 104 #define M_ZERO 0x0004 /* bzero the allocation */ macro
|
H A D | audit_session.c | 854 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 D | audit_bsd.c | 173 * 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 D | if_mib.c | 182 M_NOWAIT | M_ZERO)) == NULL) {
|
H A D | if_pflog.c | 150 M_DEVBUF, M_WAITOK|M_ZERO)) == NULL) {
|
/darwin-on-arm/xnu/bsd/sys/ |
H A D | malloc.h | 83 #define M_ZERO 0x0004 /* bzero the allocation */ macro
|
/darwin-on-arm/xnu/security/ |
H A D | mac_socket.c | 408 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 D | mac_base.c | 615 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 D | mac_net.c | 453 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
|
/darwin-on-arm/xnu/bsd/dev/dtrace/ |
H A D | dtrace_ptss.c | 157 struct dtrace_ptss_page* ptss_page = _MALLOC(sizeof(struct dtrace_ptss_page), M_TEMP, M_ZERO | M_WAITOK);
|
H A D | dtrace_glue.c | 397 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 D | bsd_stubs.c | 360 MALLOC(newlock, devsw_lock_t, sizeof(struct devsw_lock), M_TEMP, M_WAITOK | M_ZERO);
|
H A D | posix_sem.c | 436 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 D | posix_shm.c | 456 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 D | sysv_sem.c | 288 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 D | kern_core.c | 274 MALLOC(alloced_name, char *, MAXPATHLEN, M_TEMP, M_NOWAIT | M_ZERO);
|
H A D | kern_malloc.c | 601 if (flags & M_ZERO)
|
/darwin-on-arm/xnu/bsd/nfs/ |
H A D | nfs_upcall.c | 369 MALLOC(arg, struct nfsrv_uc_arg *, sizeof (struct nfsrv_uc_arg), M_NFSSVC, M_WAITOK | M_ZERO);
|
H A D | nfs_gss.c | 342 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 D | nfs4_subs.c | 1802 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 D | nfs_vfsops.c | 2031 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 D | classq_red.c | 550 w = _MALLOC(sizeof (struct wtab), M_DEVBUF, M_WAITOK|M_ZERO);
|
H A D | classq_sfb.c | 376 M_WAITOK|M_ZERO)) == NULL) { 383 M_WAITOK|M_ZERO)) == NULL) {
|
/darwin-on-arm/xnu/bsd/netinet/ |
H A D | in_tclass.c | 224 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 D | in6_ifattach.c | 774 q = (caddr_t)_MALLOC(n, M_IFADDR, M_WAITOK|M_ZERO); 807 q = (caddr_t)_MALLOC(n, M_IFADDR, M_WAITOK|M_ZERO);
|