Searched refs:M_WAITOK (Results 101 - 125 of 211) sorted by relevance

123456789

/xnu-2782.1.97/bsd/security/audit/
H A Daudit_bsm_klib.c131 evc_new = malloc(sizeof(*evc), M_AUDITEVCLASS, M_WAITOK);
H A Daudit_pipe.c316 app_new = malloc(sizeof(*app_new), M_AUDIT_PIPE_PRESELECT, M_WAITOK);
574 ap = malloc(sizeof(*ap), M_AUDIT_PIPE, M_WAITOK | M_ZERO);
/xnu-2782.1.97/security/
H A Dmac_process.c234 MALLOC(buffer, char *, mac.m_buflen, M_MACTEMP, M_WAITOK);
/xnu-2782.1.97/bsd/kern/
H A Dkern_credential.c438 MALLOC(workp, struct kauth_resolver_work *, sizeof(*workp), M_KAUTH, M_WAITOK);
1136 MALLOC(kip, struct kauth_identity *, sizeof(*kip), M_KAUTH, M_WAITOK | M_ZERO);
2914 MALLOC(gm, struct kauth_group_membership *, sizeof(*gm), M_KAUTH, M_WAITOK);
3351 M_KAUTH, M_WAITOK | M_ZERO);
3658 MALLOC_ZONE(newcred, kauth_cred_t, sizeof(*newcred), M_CRED, M_WAITOK);
5425 MALLOC(cred_debug_buf_p, cred_debug_buffer *, sizeof(*cred_debug_buf_p), M_KAUTH, M_WAITOK);
5505 MALLOC( cred_listp, debug_ucred *, req->oldlen, M_TEMP, M_WAITOK );
5604 MALLOC( bt_bufp, cred_debug_buffer *, req->oldlen, M_TEMP, M_WAITOK );
H A Dkern_descrip.c1454 MALLOC(pathbufp, char *, pathlen, M_TEMP, M_WAITOK);
1838 MALLOC(backup_keyp, char *, backup_key_len, M_TEMP, M_WAITOK);
2373 MALLOC(pathbufp, char *, pathlen, M_TEMP, M_WAITOK);
3199 numfiles * OFILESIZE, M_OFILETABL, M_WAITOK);
4438 MALLOC_ZONE(fg, struct fileglob *, sizeof(struct fileglob), M_FILEGLOB, M_WAITOK);
4638 sizeof(*newfdp), M_FILEDESC, M_WAITOK);
4733 i * OFILESIZE, M_OFILETABL, M_WAITOK);
5756 MALLOC_ZONE(fp, struct fileproc *, sizeof (*fp), M_FILEPROC, M_WAITOK);
H A Dkern_lockf.c259 MALLOC(lock, struct lockf *, sizeof *lock, M_LOCKF, M_WAITOK);
1188 MALLOC(splitlock, struct lockf *, sizeof *splitlock, M_LOCKF, M_WAITOK);
H A Dkpi_socket.c184 MALLOC(sa, struct sockaddr *, to->sa_len, M_SONAME, M_WAITOK);
215 (flags & MSG_DONTWAIT) ? M_NOWAIT : M_WAITOK);
H A Dkern_aio.c1268 MALLOC( aiocbpp, user_addr_t *, (nent * sizeof(user_addr_t)), M_TEMP, M_WAITOK );
1489 MALLOC( entryp_listp, void *, (uap->nent * sizeof(aio_workq_entry *)), M_TEMP, M_WAITOK );
1495 MALLOC( lio_context, aio_lio_context*, sizeof(aio_lio_context), M_TEMP, M_WAITOK );
H A Duipc_mbuf.c1184 M_TEMP, M_WAITOK | M_ZERO);
1188 M_TEMP, M_WAITOK | M_ZERO);
1473 M_TEMP, M_WAITOK | M_ZERO);
1488 M_TEMP, M_WAITOK | M_ZERO);
1512 M_TEMP, M_WAITOK);
1608 M_TEMP, M_WAITOK);
1637 MALLOC(mbuf_dump_buf, char *, MBUF_DUMP_BUF_SIZE, M_TEMP, M_WAITOK);
5847 n = m_get(M_WAITOK, m->m_type);
6285 M_WAITOK | M_ZERO);
6713 M_TEMP, M_WAITOK | M_ZER
[all...]
H A Duipc_usrreq.c1620 M_TEMP, M_WAITOK);
1745 M_TEMP, M_WAITOK);
2198 M_FILEGLOB, M_WAITOK);
/xnu-2782.1.97/bsd/net/
H A Dif.c420 new_ifnet_addrs = _MALLOC(n, M_IFADDR, M_WAITOK);
627 ifc->ifc_units = _MALLOC(len, M_CLONE, M_WAITOK | M_ZERO);
1833 ifs = _MALLOC(sizeof (*ifs), M_DEVBUF, M_WAITOK);
2740 ifma = (how == M_WAITOK) ? zalloc(ifma_zone) :
3047 M_IFADDR, M_WAITOK);
3085 MALLOC(sdl_new, struct sockaddr_dl*, len, M_IFADDR, M_WAITOK);
3195 llifma = ifma_alloc(M_WAITOK);
3216 ifma = ifma_alloc(M_WAITOK);
H A Dif_bond.c486 m = m_getcl(M_WAITOK, MT_DATA, M_PKTHDR);
488 m = m_gethdr(M_WAITOK, MT_DATA);
869 b = _MALLOC(sizeof(*b), M_BOND, M_WAITOK);
1092 ifb = _MALLOC(sizeof(ifbond), M_BOND, M_WAITOK);
1821 p = _MALLOC(sizeof(*p), M_BOND, M_WAITOK);
2066 _MALLOC(sizeof(*new_array) * ifb->ifb_port_count, M_BOND, M_WAITOK);
3658 lag = (LAG_ref)_MALLOC(sizeof(*lag), M_BOND, M_WAITOK);
H A Dif_vlan.c524 v = _MALLOC(sizeof(*v), M_VLAN, M_WAITOK);
855 vlp = _MALLOC(sizeof(*vlp), M_VLAN, M_WAITOK);
981 ifv = _MALLOC(sizeof(struct ifvlan), M_VLAN, M_WAITOK);
/xnu-2782.1.97/bsd/netinet/
H A Draw_ip.c1057 inp_list = _MALLOC(n * sizeof *inp_list, M_TEMP, M_WAITOK);
1161 inp_list = _MALLOC(n * sizeof *inp_list, M_TEMP, M_WAITOK);
H A Dflow_divert.c297 MALLOC_ZONE(new_pcb, struct flow_divert_pcb *, sizeof(*new_pcb), M_FLOW_DIVERT_PCB, M_WAITOK);
1637 MALLOC(group->token_key, uint8_t *, key_size, M_TEMP, M_WAITOK);
1771 MALLOC(new_trie.memory, void *, nodes_mem_size + child_maps_mem_size + bytes_mem_size, M_TEMP, M_WAITOK);
1858 MALLOC(signing_id, uint8_t *, max_size + 1, M_TEMP, M_WAITOK);
2258 MALLOC(signing_id, char *, sid_size + 1, M_TEMP, M_WAITOK | M_ZERO);
2970 MALLOC_ZONE(new_group, struct flow_divert_group *, sizeof(*new_group), M_FLOW_DIVERT_GROUP, M_WAITOK);
2990 M_WAITOK | M_ZERO);
H A Dip_fw2.c876 fw64 = _MALLOC(copyinsize, M_TEMP, M_WAITOK);
901 fw32 = _MALLOC(copyinsize, M_TEMP, M_WAITOK);
3542 buf = _MALLOC(size, M_TEMP, M_WAITOK);
3650 buf2 = _MALLOC(static_count * sizeof(struct ip_old_fw), M_TEMP, M_WAITOK);
3691 buf2 = _MALLOC(buf_size, M_TEMP, M_WAITOK);
3761 rule = _MALLOC(RULE_MAXSIZE, M_TEMP, M_WAITOK);
3812 userrule = _MALLOC(savedsopt_valsize, M_TEMP, M_WAITOK);
H A Dmptcp_usrreq.c273 mpts = mptcp_subflow_alloc(M_WAITOK);
1284 error = mptcp_uiotombuf(uio, M_WAITOK, space, 0, &top);
1651 mpo = mptcp_sopt_alloc(M_WAITOK);
/xnu-2782.1.97/bsd/nfs/
H A Dnfs_subs.c812 MALLOC_ZONE(nfcname, uint8_t *, MAXPATHLEN, M_NAMEI, M_WAITOK);
2121 MALLOC_ZONE(cnp->cn_pnbuf, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK);
2561 MALLOC(no, struct nfs_netopt *, i, M_NETADDR, M_WAITOK);
2947 MALLOC(nxfs, struct nfs_exportfs *, sizeof(struct nfs_exportfs), M_TEMP, M_WAITOK);
2954 MALLOC(nxfs->nxfs_path, char*, pathlen, M_TEMP, M_WAITOK);
3001 MALLOC(nx, struct nfs_export *, sizeof(struct nfs_export), M_TEMP, M_WAITOK);
3010 MALLOC(nx->nx_path, char*, pathlen, M_TEMP, M_WAITOK);
3529 M_TEMP, M_WAITOK | M_ZERO);
H A Dnfs_serv.c722 MALLOC(uio_bufp, char*, uio_buflen, M_TEMP, M_WAITOK);
892 MALLOC(uio_bufp, char *, UIO_SIZEOF(mreadcnt), M_TEMP, M_WAITOK);
1138 MALLOC(fp, struct nfsrv_fmod *, sizeof(*fp), M_TEMP, M_WAITOK);
1264 MALLOC(uio_bufp, char *, UIO_SIZEOF(mcount), M_TEMP, M_WAITOK);
1554 MALLOC(uio_bufp, char *, UIO_SIZEOF(i), M_TEMP, M_WAITOK);
2851 MALLOC_ZONE(topath, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK);
2866 MALLOC_ZONE(frompath, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK);
3354 MALLOC(linkdata, caddr_t, linkdatalen + 1, M_TEMP, M_WAITOK);
3961 MALLOC(rbuf, caddr_t, siz, M_TEMP, M_WAITOK);
4182 MALLOC(rbuf, caddr_t, siz, M_TEMP, M_WAITOK);
[all...]
/xnu-2782.1.97/bsd/vfs/
H A Dkpi_vfs.c820 M_WAITOK);
869 M_TEMP, M_WAITOK);
3761 MALLOC(xfromname, char *, len, M_TEMP, M_WAITOK);
3772 MALLOC(xtoname, char *, len, M_TEMP, M_WAITOK);
3787 MALLOC(fromnd, struct nameidata *, sizeof (struct nameidata), M_TEMP, M_WAITOK);
3865 MALLOC(tond, struct nameidata *, sizeof(struct nameidata), M_TEMP, M_WAITOK);
4388 MALLOC(filename, char *, len, M_TEMP, M_WAITOK);
4468 MALLOC(filename, char *, len, M_TEMP, M_WAITOK);
H A Dvfs_attrlist.c1082 MALLOC(ab.base, char *, ab.allocated, M_TEMP, M_ZERO | M_WAITOK);
2321 M_ZERO | M_WAITOK);
2647 M_WAITOK);
2865 MALLOC(fvd->fv_buf, caddr_t, rdirbufsiz, M_FD_DIRBUF, M_WAITOK);
3179 MALLOC(kern_attr_buf, caddr_t, kern_attr_buf_siz, M_TEMP, M_WAITOK);
3219 M_TEMP, M_WAITOK);
3504 MALLOC(va_name, char *, MAXPATHLEN, M_TEMP, M_WAITOK|M_ZERO);
3690 MALLOC(user_buf, char *, uap->bufferSize, M_TEMP, M_WAITOK);
/xnu-2782.1.97/bsd/netkey/
H A Dkey.c368 ((p) = (t) _MALLOC((u_int32_t)(n), M_SECA, M_WAITOK))
376 ((p) = (t)_MALLOC((u_int32_t)(n), M_SECA, M_WAITOK)); \
2064 MGETHDR(n, M_WAITOK, MT_DATA); // sadb_msg len < MHLEN - enforced by _CASSERT
2083 M_WAITOK);
2725 MGETHDR(n, M_WAITOK, MT_DATA);
2727 MCLGET(n, M_WAITOK);
2749 mhp->extlen[SADB_X_EXT_POLICY], M_WAITOK);
4859 M_PREPEND(tres, l, M_WAITOK);
6562 MGETHDR(n, M_WAITOK, MT_DATA);
6564 MCLGET(n, M_WAITOK);
[all...]
/xnu-2782.1.97/bsd/hfs/
H A Dhfs_vfsops.c1375 MALLOC(mdbp, HFSMasterDirectoryBlock *, kMDBSize, M_TEMP, M_WAITOK);
1387 MALLOC(hfsmp, struct hfsmount *, sizeof(struct hfsmount), M_HFSMNT, M_WAITOK);
2817 MALLOC(filename, char *, newlen, M_TEMP, M_WAITOK);
2822 MALLOC(unicode_name, u_int16_t *, bufsize, M_TEMP, M_WAITOK);
3389 MALLOC_ZONE(cn.cn_pnbuf, caddr_t, MAXPATHLEN, M_NAMEI, M_WAITOK);
4594 MALLOC(mp, struct mount *, sizeof(struct mount), M_TEMP, M_WAITOK);
4602 MALLOC(args, struct hfs_mount_args *, sizeof(struct hfs_mount_args), M_TEMP, M_WAITOK);
H A Dhfs_attrlist.c262 MALLOC(attrbufptr, void *, maxattrblocksize, M_TEMP, M_WAITOK);
271 MALLOC(namebuf, caddr_t, MAXPATHLEN, M_TEMP, M_WAITOK);
307 MALLOC(ce_list, struct cat_entrylist *, CE_LIST_SIZE(maxentries), M_TEMP, M_WAITOK);
/xnu-2782.1.97/bsd/netinet6/
H A Dnd6.c314 ln = (how == M_WAITOK) ? zalloc(llinfo_nd6_zone) :
482 q = (caddr_t)_MALLOC(n, M_IP6NDP, M_WAITOK);
2178 rt->rt_llinfo = ln = nd6_llinfo_alloc(M_WAITOK);
2392 drl_64 = _MALLOC(sizeof (*drl_64), M_TEMP, M_WAITOK|M_ZERO);
2424 drl_32 = _MALLOC(sizeof (*drl_32), M_TEMP, M_WAITOK|M_ZERO);
2474 prl_64 = _MALLOC(sizeof (*prl_64), M_TEMP, M_WAITOK|M_ZERO);
2529 prl_32 = _MALLOC(sizeof (*prl_32), M_TEMP, M_WAITOK|M_ZERO);

Completed in 388 milliseconds

123456789