Searched refs:MALLOC (Results 1 - 25 of 110) sorted by relevance

12345

/darwin-on-arm/xnu/bsd/hfs/
H A DMacOSStubs.c138 MALLOC (tmptr, Ptr, byteCount, M_TEMP, M_WAITOK);
149 MALLOC (tmptr, Ptr, byteCount, M_TEMP, M_WAITOK);
H A Dhfs_catalog.c250 MALLOC(pluskey, HFSPlusCatalogKey *, sizeof(HFSPlusCatalogKey), M_TEMP, M_WAITOK);
312 MALLOC(keyp, CatalogKey *, sizeof(CatalogKey), M_TEMP, M_WAITOK);
362 MALLOC(iterator, BTreeIterator *, 2 * sizeof(*iterator), M_TEMP, M_WAITOK);
425 MALLOC(iterator, BTreeIterator *, sizeof(*iterator), M_TEMP, M_WAITOK);
429 MALLOC(recp, CatalogRecord *, sizeof(CatalogRecord), M_TEMP, M_WAITOK);
462 MALLOC(pluskey, HFSPlusCatalogKey *, sizeof(HFSPlusCatalogKey), M_TEMP, M_WAITOK);
497 MALLOC(iterator, BTreeIterator *, sizeof(*iterator), M_TEMP, M_WAITOK);
501 MALLOC(recp, CatalogRecord *, sizeof(CatalogRecord), M_TEMP, M_WAITOK);
653 MALLOC(recp, CatalogRecord *, sizeof(CatalogRecord), M_TEMP, M_WAITOK);
655 MALLOC(iterato
[all...]
H A Drangelist.c105 MALLOC(range, struct rl_entry *, sizeof(*range), M_TEMP, M_WAITOK);
206 MALLOC(splitrange, struct rl_entry *, sizeof *splitrange, M_TEMP, M_WAITOK);
H A Dhfs_xattr.c472 MALLOC(iterator, BTreeIterator *, sizeof(*iterator), M_TEMP, M_WAITOK);
484 MALLOC(recp, HFSPlusAttrRecord *, bufsize, M_TEMP, M_WAITOK);
575 MALLOC(extentbuf, HFSPlusExtentDescriptor *, extentbufsize, M_TEMP, M_WAITOK);
887 MALLOC(user_data_ptr, void *, attrsize, M_TEMP, M_WAITOK);
1010 MALLOC(iterator, BTreeIterator *, sizeof(*iterator), M_TEMP, M_WAITOK);
1061 MALLOC(extentptr, HFSPlusExtentDescriptor *, extentbufsize, M_TEMP, M_WAITOK);
1100 MALLOC(recp, HFSPlusAttrRecord *, sizeof(HFSPlusAttrRecord), M_TEMP, M_WAITOK);
1161 MALLOC(recp, HFSPlusAttrRecord *, btdata.itemSize, M_TEMP, M_WAITOK);
1424 MALLOC(iterator, BTreeIterator *, sizeof(*iterator), M_TEMP, M_WAITOK);
1506 MALLOC(iterato
[all...]
H A Dhfs_cprotect.c1034 MALLOC (newxattr, struct cp_xattr_v4*, sizeof(struct cp_xattr_v4), M_TEMP, M_WAITOK);
1058 MALLOC (newxattr, struct cp_xattr_v2*, sizeof(struct cp_xattr_v2), M_TEMP, M_WAITOK);
1195 MALLOC(cp_entry, struct cprotect *, sizeof(struct cprotect) + keylen,
1239 MALLOC (xattr, struct cp_xattr_v4*, sizeof(struct cp_xattr_v4), M_TEMP, M_WAITOK);
1303 MALLOC (xattr, struct cp_xattr_v2*, sizeof(struct cp_xattr_v2), M_TEMP, M_WAITOK);
/darwin-on-arm/xnu/security/
H A Dmac_base.c310 MALLOC(mlj, struct mac_label_journal *,
613 MALLOC(new_mles, struct mac_label_element **,
617 MALLOC(new_mles[idx], struct mac_label_element *,
621 MALLOC(new_mlls, struct mac_label_listener **,
625 MALLOC(new_mlls[idx], struct mac_label_listener *,
1186 MALLOC(scratch_base, char *, strlen(elementlist)+1, M_MACTEMP, M_WAITOK);
1335 MALLOC(elements, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
1344 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
1383 MALLOC(elements, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
1393 MALLOC(buffe
[all...]
H A Dmac_socket.c367 MALLOC(buffer, char *, mac->m_buflen, M_MACTEMP, M_WAITOK);
400 MALLOC(elements, char *, mac->m_buflen, M_MACTEMP, M_WAITOK);
408 MALLOC(buffer, char *, mac->m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
437 MALLOC(elements, char *, mac->m_buflen, M_MACTEMP, M_WAITOK);
445 MALLOC(buffer, char *, mac->m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
H A Dmac_net.c444 MALLOC(elements, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
453 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO);
490 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
/darwin-on-arm/xnu/bsd/net/
H A Dkext_net.c187 MALLOC(kp, struct kextcb *, sizeof(*kp), M_TEMP, M_WAITOK);
239 MALLOC(g_symantec_if_funcs, struct sockif*, sizeof(*g_symantec_if_funcs), M_TEMP, M_WAITOK);
248 MALLOC(g_symantec_util_funcs, struct sockutil*, sizeof(*g_symantec_util_funcs), M_TEMP, M_WAITOK);
H A Dndrv.c226 MALLOC(np, struct ndrv_cb *, sizeof(*np), M_PCB, M_WAITOK);
284 MALLOC(np->nd_faddr, struct sockaddr_ndrv*,
460 MALLOC(*nam, struct sockaddr *, len, M_SONAME, M_WAITOK);
482 MALLOC(*nam, struct sockaddr *, len, M_SONAME, M_WAITOK);
719 MALLOC(ndrvDemux, struct ndrv_demux_desc*, proto_param.demux_count *
725 MALLOC(proto_param.demux_array, struct ifnet_demux_desc*,
900 MALLOC(ndrv_multi, struct ndrv_multiaddr*, sizeof(struct ndrv_multiaddr) -
952 MALLOC(multi_addr, struct sockaddr*, sopt->sopt_valsize,
H A Dppp_deflate.c162 MALLOC(ptr, void *, items * size, M_DEVBUF, M_NOWAIT);
195 MALLOC(state, struct deflate_state *, sizeof(struct deflate_state),
425 MALLOC(state, struct deflate_state *, sizeof(struct deflate_state),
/darwin-on-arm/xnu/bsd/dev/arm/
H A Dmem.c214 MALLOC(devzerobuf, caddr_t, PAGE_SIZE, M_TEMP, M_WAITOK);
/darwin-on-arm/xnu/bsd/dev/i386/
H A Dmem.c210 MALLOC(devzerobuf, caddr_t,PAGE_SIZE, M_TEMP, M_WAITOK);
/darwin-on-arm/xnu/bsd/sys/
H A Dmalloc.h255 #define MALLOC(space, cast, size, type, flags) \ macro
/darwin-on-arm/xnu/osfmk/device/
H A Dsubrs.c540 * NULL If MALLOC() fails.
543 * it calls MALLOC with M_WAITOK. In fact, you really
559 MALLOC(copy, char *, len, type, M_WAITOK);
/darwin-on-arm/xnu/bsd/hfs/hfscommon/Catalog/
H A DCatalogUtilities.c61 MALLOC (searchIterator, struct BTreeIterator*, sizeof(struct BTreeIterator), M_TEMP, M_WAITOK);
143 MALLOC (searchIterator, struct BTreeIterator*, sizeof(struct BTreeIterator), M_TEMP, M_WAITOK);
H A DFileIDsServices.c444 MALLOC (btIterator, struct BTreeIterator*, sizeof(struct BTreeIterator), M_TEMP, M_WAITOK);
450 MALLOC (tmpIterator, struct BTreeIterator*, sizeof(struct BTreeIterator), M_TEMP, M_WAITOK);
641 MALLOC (btIterator, struct BTreeIterator*, sizeof(struct BTreeIterator), M_TEMP, M_WAITOK);
646 MALLOC (tmpIterator, struct BTreeIterator*, sizeof(struct BTreeIterator), M_TEMP, M_WAITOK);
/darwin-on-arm/xnu/bsd/netat/
H A Dddp_usrreq.c259 MALLOC(sat, struct sockaddr_at *, sizeof *sat, M_SONAME, M_WAITOK);
285 MALLOC(sat, struct sockaddr_at *, sizeof *sat, M_SONAME, M_WAITOK);
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_init.c166 MALLOC(*opv_desc_vector_p, PFIvp*,
553 MALLOC(allocated, struct vfstable *, sizeof(struct vfstable),
/darwin-on-arm/xnu/bsd/nfs/
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);
1095 MALLOC(cp->gss_clnt_seqbits, uint32_t *,
1247 MALLOC(cp->gss_clnt_handle, u_char *, cp->gss_clnt_handle_len, M_TEMP, M_WAITOK);
1261 MALLOC(cp->gss_clnt_token, u_char *, cp->gss_clnt_tokenlen, M_TEMP, M_WAITOK);
1311 MALLOC(svcname, char *, len, M_TEMP, M_NOWAIT);
1479 MALLOC(cp->gss_clnt_token, u_char *, otokenlen, M_TEMP, M_WAITOK);
1676 MALLOC(nc
[all...]
H A Dnfs4_subs.c135 MALLOC(ncip, struct nfs_client_id *, sizeof(struct nfs_client_id), M_TEMP, M_WAITOK);
145 MALLOC(ncip->nci_id, char *, ncip->nci_idlen, M_TEMP, M_WAITOK);
1681 MALLOC(s, char*, (len + 16 < NFS_MAX_WHO) ? len+16 : NFS_MAX_WHO, M_TEMP, M_WAITOK);
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(fs
[all...]
/darwin-on-arm/xnu/bsd/miscfs/devfs/
H A Ddevfs_tree.c200 MALLOC(devfs_hidden_mount, struct mount *, sizeof(struct mount),
398 MALLOC(dirent_p, devdirent_t *, sizeof(devdirent_t),
538 MALLOC(dnp, devnode_t *, sizeof(devnode_t), M_DEVFSNODE, M_WAITOK);
617 MALLOC(dnp->dn_typeinfo.Slnk.name, char *,
1415 MALLOC(dvearr, devfs_vnode_event_t, count * sizeof(struct devfs_vnode_event), M_TEMP, M_WAITOK | M_ZERO);
/darwin-on-arm/xnu/bsd/kern/
H A Ddecmpfs.c98 MALLOC(alloc, allocated *, allocSz, type, flags);
148 #undef MALLOC macro
150 #define MALLOC(space, cast, size, type, flags) (space) = (cast)_malloc(size, type, flags, __FILE__, __LINE__) macro
454 MALLOC(data, char *, sizeof(decmpfs_header), M_TEMP, M_WAITOK);
476 MALLOC(data, char *, attr_size + sizeof(hdr->attr_size), M_TEMP, M_WAITOK);
1563 MALLOC(data, char *, allocSize, M_TEMP, M_WAITOK);
/darwin-on-arm/xnu/bsd/netinet/
H A Ddhcp_options.c69 MALLOC(data, void *, size, M_TEMP, M_WAITOK);
78 MALLOC(data, void *, newsize, M_TEMP, M_WAITOK);
/darwin-on-arm/xnu/bsd/hfs/hfscommon/Misc/
H A DBTreeWrapper.c48 MALLOC (iterator, struct BTreeIterator *, sizeof (struct BTreeIterator), M_TEMP, M_WAITOK);

Completed in 138 milliseconds

12345