Searched refs:malloc_flags (Results 1 – 7 of 7) sorted by relevance
| /freebsd-14.2/tests/sys/netlink/ |
| H A D | test_netlink_message_writer.py | 45 def test_mbuf_writer_allocation(self, sz, writer_type, malloc_flags): argument 52 NlAttrU32(5, malloc_flags), 72 def test_mbuf_chain_allocation(self, sz, malloc_flags): argument 77 NlAttrU32(5, malloc_flags),
|
| /freebsd-14.2/sys/netlink/ |
| H A D | ktest_netlink_message_writer.h | 35 struct mbuf *nl_get_mbuf_chain_wrapper(int len, int malloc_flags); 52 nl_get_mbuf_chain_wrapper(int len, int malloc_flags) in nl_get_mbuf_chain_wrapper() argument 54 return (nl_get_mbuf_chain(len, malloc_flags)); in nl_get_mbuf_chain_wrapper()
|
| H A D | netlink_message_writer.c | 102 nl_get_mbuf_flags(int size, int malloc_flags, int mbuf_flags) in nl_get_mbuf_flags() argument 107 return (m_get2(size, malloc_flags, MT_DATA, mbuf_flags)); in nl_get_mbuf_flags() 112 m = m_gethdr(malloc_flags, MT_DATA); in nl_get_mbuf_flags() 116 m_storage = uma_zalloc_arg(nlmsg_zone, m, malloc_flags); in nl_get_mbuf_flags() 126 nl_get_mbuf(int size, int malloc_flags) in nl_get_mbuf() argument 128 return (nl_get_mbuf_flags(size, malloc_flags, M_PKTHDR)); in nl_get_mbuf() 136 nl_get_mbuf_chain(int len, int malloc_flags) in nl_get_mbuf_chain() argument 143 struct mbuf *m = nl_get_mbuf_flags(sz, malloc_flags, mbuf_flags); in nl_get_mbuf_chain()
|
| /freebsd-14.2/sys/net/route/ |
| H A D | nhgrp.c | 277 nhgrp_ctl_alloc_default(struct nh_control *ctl, int malloc_flags) in nhgrp_ctl_alloc_default() argument 283 malloc_flags = (malloc_flags & (M_NOWAIT | M_WAITOK)) | M_ZERO; in nhgrp_ctl_alloc_default() 287 cht_ptr = malloc(alloc_size, M_NHOP, malloc_flags); in nhgrp_ctl_alloc_default()
|
| H A D | nhgrp_var.h | 66 bool nhgrp_ctl_alloc_default(struct nh_control *ctl, int malloc_flags);
|
| /freebsd-14.2/sys/vm/ |
| H A D | vm_page.h | 561 malloc2vm_flags(int malloc_flags) in malloc2vm_flags() argument 565 KASSERT((malloc_flags & M_USE_RESERVE) == 0 || in malloc2vm_flags() 566 (malloc_flags & M_NOWAIT) != 0, in malloc2vm_flags() 568 pflags = (malloc_flags & M_USE_RESERVE) != 0 ? VM_ALLOC_INTERRUPT : in malloc2vm_flags() 570 if ((malloc_flags & M_ZERO) != 0) in malloc2vm_flags() 572 if ((malloc_flags & M_NODUMP) != 0) in malloc2vm_flags() 574 if ((malloc_flags & M_NOWAIT)) in malloc2vm_flags() 576 if ((malloc_flags & M_WAITOK)) in malloc2vm_flags() 578 if ((malloc_flags & M_NORECLAIM)) in malloc2vm_flags()
|
| /freebsd-14.2/sys/fs/pseudofs/ |
| H A D | pseudofs.c | 72 int malloc_flags; in pfs_alloc_node_flags() local 79 malloc_flags = M_NOWAIT | M_ZERO; in pfs_alloc_node_flags() 81 malloc_flags = M_WAITOK | M_ZERO; in pfs_alloc_node_flags() 82 pn = malloc(sizeof(*pn) + len + 1, M_PFSNODES, malloc_flags); in pfs_alloc_node_flags()
|