Home
last modified time | relevance | path

Searched refs:M_WAITOK (Results 1 – 25 of 511) sorted by relevance

12345678910>>...21

/f-stack/freebsd/security/mac/
H A Dmac_syscalls.c113 elements = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK); in sys___mac_get_pid()
121 buffer = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); in sys___mac_get_pid()
148 elements = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK); in sys___mac_get_proc()
155 buffer = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); in sys___mac_get_proc()
187 buffer = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK); in sys___mac_set_proc()
248 elements = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK); in sys___mac_get_fd()
299 intlabel = mac_socket_label_alloc(M_WAITOK); in sys___mac_get_fd()
356 elements = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK); in kern___mac_get_path()
408 buffer = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK); in sys___mac_set_fd()
468 intlabel = mac_socket_label_alloc(M_WAITOK); in sys___mac_set_fd()
[all …]
H A Dmac_socket.c112 if (flag & M_WAITOK) in mac_socket_label_alloc()
134 if (flag & M_WAITOK) in mac_socketpeer_label_alloc()
539 buffer = malloc(mac->m_buflen, M_MACTEMP, M_WAITOK); in mac_setsockopt_label()
546 intlabel = mac_socket_label_alloc(M_WAITOK); in mac_setsockopt_label()
572 elements = malloc(mac->m_buflen, M_MACTEMP, M_WAITOK); in mac_getsockopt_label()
579 buffer = malloc(mac->m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); in mac_getsockopt_label()
580 intlabel = mac_socket_label_alloc(M_WAITOK); in mac_getsockopt_label()
611 elements = malloc(mac->m_buflen, M_MACTEMP, M_WAITOK); in mac_getsockopt_peerlabel()
618 buffer = malloc(mac->m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); in mac_getsockopt_peerlabel()
619 intlabel = mac_socket_label_alloc(M_WAITOK); in mac_getsockopt_peerlabel()
H A Dmac_net.c116 label = mac_labelzone_alloc(M_WAITOK); in mac_bpfdesc_label_alloc()
136 label = mac_labelzone_alloc(M_WAITOK); in mac_ifnet_label_alloc()
160 if (flag & M_WAITOK) in mac_mbuf_tag_init()
424 elements = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK); in mac_ifnet_ioctl_get()
431 buffer = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK | M_ZERO); in mac_ifnet_ioctl_get()
467 buffer = malloc(mac.m_buflen, M_MACTEMP, M_WAITOK); in mac_ifnet_ioctl_set()
/f-stack/freebsd/contrib/zstd/lib/freebsd/
H A Dstdlib.h39 #define malloc(x) (malloc)((x), M_ZSTD, M_WAITOK)
41 #define calloc(a, b) (mallocarray)((a), (b), M_ZSTD, M_WAITOK | M_ZERO)
/f-stack/freebsd/kern/
H A Duipc_ktls.c373 ktls_sw_cbc = counter_u64_alloc(M_WAITOK); in ktls_init()
374 ktls_sw_gcm = counter_u64_alloc(M_WAITOK); in ktls_init()
375 ktls_ifnet_cbc = counter_u64_alloc(M_WAITOK); in ktls_init()
376 ktls_ifnet_gcm = counter_u64_alloc(M_WAITOK); in ktls_init()
381 ktls_toe_cbc = counter_u64_alloc(M_WAITOK); in ktls_init()
382 ktls_toe_gcm = counter_u64_alloc(M_WAITOK); in ktls_init()
389 M_WAITOK | M_ZERO); in ktls_init()
613 M_WAITOK); in ktls_create_session()
676 M_KTLS, M_WAITOK); in ktls_clone_session()
682 M_WAITOK); in ktls_clone_session()
[all …]
H A Dkern_dtrace.c74 p->p_dtrace = malloc(KDTRACE_PROC_SIZE, M_KDTRACE, M_WAITOK|M_ZERO); in kdtrace_proc_ctor()
97 td->td_dtrace = malloc(KDTRACE_THREAD_SIZE, M_KDTRACE, M_WAITOK|M_ZERO); in kdtrace_thread_ctor()
H A Dkern_ctf.c111 hdr = malloc(sizeof(*hdr), M_LINKER, M_WAITOK);
133 shdr = malloc(nbytes, M_LINKER, M_WAITOK);
155 shstrtab = malloc(shdr[hdr->e_shstrndx].sh_size, M_LINKER, M_WAITOK);
221 raw = malloc(shdr[i].sh_size, M_LINKER, M_WAITOK);
234 ctftab = malloc(sz, M_LINKER, M_WAITOK);
H A Duipc_accf.c136 p = malloc(sizeof(*p), M_ACCF, M_WAITOK); in accept_filt_generic_mod_event()
173 afap = malloc(sizeof(*afap), M_TEMP, M_WAITOK | M_ZERO); in accept_filt_getopt()
257 afap = malloc(sizeof(*afap), M_TEMP, M_WAITOK); in accept_filt_setopt()
272 accept_filter_str = malloc(len, M_ACCF, M_WAITOK); in accept_filt_setopt()
H A Dsubr_counter.c101 out = malloc(arg2 * sizeof(uint64_t), M_TEMP, M_WAITOK); in sysctl_handle_counter_u64_array()
182 *cp = counter_u64_alloc(M_WAITOK); in counter_u64_sysinit()
H A Dkern_environment.c124 buffer = malloc(buflen, M_TEMP, M_WAITOK|M_ZERO);
162 name = malloc(KENV_MNAMELEN + 1, M_TEMP, M_WAITOK);
197 value = malloc(len, M_TEMP, M_WAITOK);
365 kenvp[i] = malloc(len, M_KENV, M_WAITOK); in init_dynamic_kenv_from()
390 M_WAITOK | M_ZERO); in init_dynamic_kenv()
488 ret = uma_zalloc(kenv_zone, M_WAITOK | M_ZERO); in kern_getenv()
565 buf = malloc(namelen + vallen, M_KENV, M_WAITOK); in kern_setenv()
H A Dimgact_binmisc.c147 ibe->ibe_interpreter = malloc(len, M_BINMISC, M_WAITOK|M_ZERO); in imgact_binmisc_populate_interp()
165 ibe = malloc(sizeof(*ibe), M_BINMISC, M_WAITOK|M_ZERO); in imgact_binmisc_new_entry()
167 ibe->ibe_name = malloc(namesz, M_BINMISC, M_WAITOK|M_ZERO); in imgact_binmisc_new_entry()
172 ibe->ibe_magic = malloc(xbe->xbe_msize, M_BINMISC, M_WAITOK|M_ZERO); in imgact_binmisc_new_entry()
175 ibe->ibe_mask = malloc(xbe->xbe_msize, M_BINMISC, M_WAITOK|M_ZERO); in imgact_binmisc_new_entry()
416 xbe = malloc(sizeof(*xbe) * count, M_BINMISC, M_WAITOK|M_ZERO); in imgact_binmisc_get_all_entries()
H A Dsubr_stack.c105 &offset, M_WAITOK); in stack_print()
123 &offset, M_WAITOK) == 0) in stack_print_short()
206 (void)stack_sbuf_print_flags(sb, st, M_WAITOK, STACK_SBUF_FMT_LONG); in stack_sbuf_print()
/f-stack/freebsd/arm/ti/clk/
H A Dclock_common.c74 clk->clock_cells = malloc(numbytes_clocks, M_DEVBUF, M_WAITOK|M_ZERO); in read_clock_cells()
76 M_DEVBUF, M_WAITOK|M_ZERO); in read_clock_cells()
146 M_OFWPROP, M_WAITOK); in create_clkdef()
/f-stack/freebsd/x86/xen/
H A Dpv.c363 bootstacks[cpu] = (void *)kmem_malloc(stacksize, M_WAITOK | M_ZERO); in start_xen_ap()
364 doublefault_stack = (char *)kmem_malloc(PAGE_SIZE, M_WAITOK | M_ZERO); in start_xen_ap()
365 mce_stack = (char *)kmem_malloc(PAGE_SIZE, M_WAITOK | M_ZERO); in start_xen_ap()
366 nmi_stack = (char *)kmem_malloc(PAGE_SIZE, M_WAITOK | M_ZERO); in start_xen_ap()
367 dbg_stack = (void *)kmem_malloc(PAGE_SIZE, M_WAITOK | M_ZERO); in start_xen_ap()
368 dpcpu = (void *)kmem_malloc(DPCPU_SIZE, M_WAITOK | M_ZERO); in start_xen_ap()
373 ctxt = malloc(sizeof(*ctxt), M_TEMP, M_WAITOK | M_ZERO); in start_xen_ap()
/f-stack/freebsd/sys/
H A Dmalloc.h56 #define M_WAITOK 0x0002 /* ok to block */ macro
235 if (((flags) & M_WAITOK) != 0 || \
304 #define M_WAITOK 0 macro
316 #define KM_SLEEP M_WAITOK
/f-stack/freebsd/contrib/openzfs/module/os/freebsd/spl/
H A Dspl_vfs.c64 opts = malloc(sizeof (*vfsp->mnt_opt), M_MOUNT, M_WAITOK); in vfs_setmntopt()
76 opt = malloc(sizeof (*opt), M_MOUNT, M_WAITOK); in vfs_setmntopt()
78 opt->name = malloc(namesize, M_MOUNT, M_WAITOK); in vfs_setmntopt()
87 opt->value = malloc(opt->len, M_MOUNT, M_WAITOK); in vfs_setmntopt()
/f-stack/freebsd/netinet/
H A Dtcp_reass.c285 reass_path1 = counter_u64_alloc(M_WAITOK); in tcp_reass_global_init()
286 reass_path2 = counter_u64_alloc(M_WAITOK); in tcp_reass_global_init()
287 reass_path3 = counter_u64_alloc(M_WAITOK); in tcp_reass_global_init()
288 reass_path4 = counter_u64_alloc(M_WAITOK); in tcp_reass_global_init()
289 reass_path5 = counter_u64_alloc(M_WAITOK); in tcp_reass_global_init()
290 reass_path6 = counter_u64_alloc(M_WAITOK); in tcp_reass_global_init()
291 reass_path7 = counter_u64_alloc(M_WAITOK); in tcp_reass_global_init()
293 reass_nospace = counter_u64_alloc(M_WAITOK); in tcp_reass_global_init()
294 reass_entry = counter_u64_alloc(M_WAITOK); in tcp_reass_global_init()
295 merge_fwd = counter_u64_alloc(M_WAITOK); in tcp_reass_global_init()
[all …]
H A Dip_id.c198 M_WAITOK | M_ZERO); in ip_initid()
199 new_bits = malloc(bitstr_size(65536), M_IPID, M_WAITOK | M_ZERO); in ip_initid()
282 V_ip_id = counter_u64_alloc(M_WAITOK); in ipid_sysinit()
/f-stack/freebsd/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dkmem.h47 #define KM_SLEEP M_WAITOK
48 #define KM_PUSHPAGE M_WAITOK
/f-stack/freebsd/arm64/coresight/
H A Dcoresight_fdt.c87 M_CORESIGHT, M_WAITOK | M_ZERO); in coresight_fdt_get_ports()
139 M_CORESIGHT, M_WAITOK | M_ZERO); in coresight_fdt_get_platform_data()
/f-stack/freebsd/arm/mv/
H A Dmv_pci_ctrl.c183 di = malloc(sizeof(*di), M_PCIB_CTRL, M_WAITOK | M_ZERO); in mv_pcib_ofw_bus_attach()
234 di = malloc(sizeof(*di), M_DEVBUF, M_WAITOK | M_ZERO); in mv_pcib_ctrl_add_child()
316 M_DEVBUF, M_WAITOK); in mv_pcib_ctrl_fill_ranges()
317 base_ranges = malloc(nbase_ranges, M_DEVBUF, M_WAITOK); in mv_pcib_ctrl_fill_ranges()
/f-stack/freebsd/net/
H A Dbpf_buffer.c175 fbuf = (caddr_t)malloc(size, M_BPF, M_WAITOK); in bpf_buffer_ioctl_sblen()
176 sbuf = (caddr_t)malloc(size, M_BPF, M_WAITOK); in bpf_buffer_ioctl_sblen()
H A Dpfil.c212 head = malloc(sizeof(struct pfil_head), M_PFIL, M_WAITOK); in pfil_head_register()
264 hook = malloc(sizeof(struct pfil_hook), M_PFIL, M_WAITOK | M_ZERO); in pfil_add_hook()
332 in = malloc(sizeof(*in), M_PFIL, M_WAITOK | M_ZERO); in pfil_link()
336 out = malloc(sizeof(*out), M_PFIL, M_WAITOK | M_ZERO); in pfil_link()
559 iohead = malloc(sizeof(*iohead) * nheads, M_TEMP, M_WAITOK); in pfilioc_listheads()
560 iohook = malloc(sizeof(*iohook) * nhooks, M_TEMP, M_WAITOK); in pfilioc_listheads()
634 iohook = malloc(sizeof(*iohook) * nhooks, M_TEMP, M_WAITOK); in pfilioc_listhooks()
/f-stack/freebsd/contrib/libnv/
H A Dnv_impl.h55 #define nv_malloc(size) malloc((size), M_NVLIST, M_WAITOK)
57 M_WAITOK | M_ZERO)
59 M_WAITOK)
/f-stack/freebsd/netgraph/netflow/
H A Dnetflow.c491 M_NETFLOW_HASH, M_WAITOK | M_ZERO); in ng_netflow_cache_init()
502 M_NETFLOW_HASH, M_WAITOK | M_ZERO); in ng_netflow_cache_init()
511 priv->nfinfo_bytes = counter_u64_alloc(M_WAITOK); in ng_netflow_cache_init()
512 priv->nfinfo_packets = counter_u64_alloc(M_WAITOK); in ng_netflow_cache_init()
513 priv->nfinfo_bytes6 = counter_u64_alloc(M_WAITOK); in ng_netflow_cache_init()
514 priv->nfinfo_packets6 = counter_u64_alloc(M_WAITOK); in ng_netflow_cache_init()
515 priv->nfinfo_sbytes = counter_u64_alloc(M_WAITOK); in ng_netflow_cache_init()
516 priv->nfinfo_spackets = counter_u64_alloc(M_WAITOK); in ng_netflow_cache_init()
517 priv->nfinfo_sbytes6 = counter_u64_alloc(M_WAITOK); in ng_netflow_cache_init()
518 priv->nfinfo_spackets6 = counter_u64_alloc(M_WAITOK); in ng_netflow_cache_init()
[all …]

12345678910>>...21