Searched refs:zeroed (Results 1 - 8 of 8) sorted by relevance
/kernel/linux/linux-6.6/rust/alloc/ |
H A D | alloc.rs | 178 fn alloc_impl(&self, layout: Layout, zeroed: bool) -> Result<NonNull<[u8]>, AllocError> { in alloc_impl() 183 let raw_ptr = if zeroed { alloc_zeroed(layout) } else { alloc(layout) }; in alloc_impl() 197 zeroed: bool, in grow_impl() 205 0 => self.alloc_impl(new_layout, zeroed), in grow_impl() 217 if zeroed { in grow_impl() 229 let new_ptr = self.alloc_impl(new_layout, zeroed)?; in grow_impl()
|
/kernel/linux/linux-6.6/rust/alloc/vec/ |
H A D | into_iter.rs | 199 Some(unsafe { mem::zeroed() }) in next() 291 if T::IS_ZST { mem::zeroed() } else { ptr::read(self.ptr.add(i)) } in __iterator_get_unchecked() 307 Some(unsafe { mem::zeroed() }) in next_back()
|
H A D | is_zero.rs | 159 let none: Self = unsafe { core::mem::MaybeUninit::zeroed().assume_init() }; in is_zero()
|
/kernel/linux/linux-6.6/net/core/ |
H A D | gro.c | 464 BUILD_BUG_ON(sizeof_field(struct napi_gro_cb, zeroed) != sizeof(u32)); in dev_gro_receive() 465 BUILD_BUG_ON(!IS_ALIGNED(offsetof(struct napi_gro_cb, zeroed), in dev_gro_receive() 467 *(u32 *)&NAPI_GRO_CB(skb)->zeroed = 0; in dev_gro_receive()
|
/kernel/linux/linux-6.6/mm/ |
H A D | vmalloc.c | 3310 * poisoned and zeroed by kasan_unpoison_vmalloc(). in __vmalloc_node_range() 3464 * vmalloc_user - allocate zeroed virtually contiguous memory for userspace 3467 * The resulting memory area is zeroed so it can be mapped to userspace 3548 * vmalloc_32_user - allocate zeroed virtually contiguous 32bit memory 3551 * The resulting memory area is 32bit addressable and zeroed so it can be 3568 * Returns the number of zeroed bytes. 3683 size_t zeroed = zero_iter(iter, to_zero); in vmap_ram_vread_iter() local 3685 addr += zeroed; in vmap_ram_vread_iter() 3686 remains -= zeroed; in vmap_ram_vread_iter() 3688 if (remains == 0 || zeroed ! in vmap_ram_vread_iter() 3797 size_t zeroed = zero_iter(iter, to_zero); vread_iter() local [all...] |
H A D | hugetlb.c | 1704 int zeroed; in add_hugetlb_folio() local 1733 zeroed = folio_put_testzero(folio); in add_hugetlb_folio() 1734 if (unlikely(!zeroed)) in add_hugetlb_folio() 5551 * could insert a zeroed page instead of the data existing in unmap_ref_private()
|
/kernel/linux/linux-6.6/include/net/ |
H A D | gro.h | 51 struct_group(zeroed,
|
/kernel/linux/linux-6.6/rust/kernel/ |
H A D | init.rs | 102 //! buffer: Box::init(kernel::init::zeroed())?, 522 /// - Using struct update syntax one can place `..Zeroable::zeroed()` at the very end of the 547 /// ..Zeroable::zeroed() 603 /// big: Box::init(init::zeroed())?, 695 /// use kernel::{init::{PinInit, zeroed}, error::Error}; 704 /// big: Box::init(zeroed())?, 914 /// buf <- init::zeroed() 1262 /// let val: Self = unsafe { core::mem::zeroed() }; 1266 /// Create a new zeroed T. 1270 pub fn zeroed< functions [all...] |
Completed in 18 milliseconds