Home
last modified time | relevance | path

Searched refs:free (Results 1 – 25 of 33) sorted by relevance

12

/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dzone.rs133 let mut free = 0; in free_space() localVariable
142 free += slab_page.free_obj_count() * scallocator.size(); in free_space()
145 free += in free_space()
148 free as u64 in free_space()
211 free: u64, field
216 pub fn new(total: u64, free: u64) -> Self { in new()
217 Self { total, free } in new()
225 self.total - self.free in used()
228 pub fn free(&self) -> u64 { in free() method
229 self.free in free()
/DragonOS/kernel/src/mm/allocator/
H A Dpage_frame.rs299 pub fn free(&self) -> PageFrameCount { in free() method
314 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount); in free() method
321 return self.free(address, PageFrameCount::new(1)); in free_one()
332 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount) { in free() method
333 return T::free(self, address, count); in free()
364 LockedFrameAllocator.free(frame.phys_address(), count); in deallocate_page_frames()
H A Dbuddy.rs81 let initial_free_pages = bump_allocator.usage().free(); in new()
593 unsafe fn free(&mut self, base: PhysAddr, count: PageFrameCount) { in free() method
619 let free = PageFrameCount::new(free_page_num); in usage() localVariable
620 PageFrameUsage::new(self.total - free, self.total) in usage()
H A Dbump.rs172 unsafe fn free(&mut self, _address: PhysAddr, _count: PageFrameCount) { in free() method
H A Dkernel_allocator.rs59 LockedFrameAllocator.free(phy_addr, page_frame_count); in free_in_buddy()
/DragonOS/kernel/crates/ida/src/
H A Dlib.rs133 pub fn free(&mut self, id: usize) { in free() method
198 ida.free(5); in test_id_allocator()
213 ida.free(i); in test_id_allocator()
/DragonOS/kernel/src/syscall/
H A Dmisc.rs45 sysinfo.freeram = mem.free().bytes() as u64 + slab_usage.free(); in sysinfo()
/DragonOS/
H A DLICENSE13 License is intended to guarantee your freedom to share and change free
14 software--to make sure the software is free for all its users. This
21 When we speak of free software, we are referring to freedom, not
23 have the freedom to distribute copies of free software (and charge for
26 in new free programs; and that you know you can do these things.
44 that everyone understands that there is no warranty for this free
50 Finally, any free program is threatened constantly by software
51 patents. We wish to avoid the danger that redistributors of a free
54 patent must be licensed for everyone's free use or not licensed at all.
205 license would not permit royalty-free redistribution of the Program by
[all …]
/DragonOS/user/apps/dmesg/
H A Dmain.c114 free(buf); in main()
/DragonOS/kernel/crates/intertrait/
H A DLICENSE-MIT1 Permission is hereby granted, free of charge, to any person obtaining a copy
/DragonOS/kernel/crates/intertrait/macros/
H A DLICENSE-MIT1 Permission is hereby granted, free of charge, to any person obtaining a copy
H A DLICENSE-APACHE68 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
75 worldwide, non-exclusive, no-charge, royalty-free, irrevocable
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.8.md73 - bugfix: 修正rwlock有的地方由于未使用ManuallyDrop导致的use after free问题 (#329)
177 … 修正rwlock有的地方由于未使用ManuallyDrop导致的use after free && spinlock守卫新增leak,spinlock新增force unlock功能.(#329)
179 1.修正rwlock有的地方由于未使用ManuallyDrop导致的use after free
214 bugfix: 解决取消低地址映射时,错误的把重映射的物理页释放,从而导致的use after free问题。 (#321)
/DragonOS/kernel/crates/rbpf/
H A DLICENSE-MIT3 Permission is hereby granted, free of charge, to any
/DragonOS/kernel/src/driver/virtio/
H A Dsysfs.rs284 pub fn free(&self, index: VirtIODeviceIndex) { in free() method
285 self.ida.lock().free(index.0); in free()
/DragonOS/kernel/src/driver/tty/virtual_terminal/
H A Dmod.rs178 pub fn free(&self, index: usize) { in free() method
183 inner.ida.free(index); in free()
360 .inspect_err(|_| vc_manager().free(vc.index().unwrap()))?; in install()
/DragonOS/kernel/src/arch/x86_64/mm/
H A Dmod.rs622 unsafe { LockedFrameAllocator.free(paddr, allocated_frame_count) }; in test_buddy()
637 unsafe { LockedFrameAllocator.free(paddr, allocated_frame_count) }; in test_buddy()
660 unsafe fn free(&mut self, address: crate::mm::PhysAddr, count: PageFrameCount) { in free() method
663 return allocator.free(address, count); in free()
/DragonOS/kernel/src/mm/
H A Dno_init.rs117 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount) { in free() method
/DragonOS/docs/kernel/debug/
H A Ddebug-kernel-with-gdb.md46 This is free software: you are free to change and redistribute it.
/DragonOS/kernel/src/arch/riscv64/mm/
H A Dmod.rs358 unsafe fn free(&mut self, address: crate::mm::PhysAddr, count: PageFrameCount) { in free() method
361 return allocator.free(address, count); in free()
/DragonOS/kernel/src/filesystem/fat/
H A Dentry.rs412 let mut free = 0; in find_free_entries() localVariable
441 if free == 0 { in find_free_entries()
445 free += 1; in find_free_entries()
446 if free == num_free { in find_free_entries()
454 free = 0; in find_free_entries()
461 let remain_entries = num_free - free; in find_free_entries()
481 if free > 0 { in find_free_entries()
/DragonOS/kernel/src/ipc/
H A Dshm.rs210 self.id_allocator.free(id.0); in free_id()
340 LockedFrameAllocator.free(paddr, PageFrameCount::new(1)); in ipc_rmid()
/DragonOS/kernel/src/driver/base/platform/
H A Dplatform_device.rs119 PLATFORM_DEVID_IDA.lock().free(pdevid.0 as usize); in device_add()
/DragonOS/kernel/src/namespaces/
H A Dpid_namespace.rs87 ns.id_alloctor.write().free(id); in put_pid()
/DragonOS/kernel/src/driver/rtc/
H A Dsysfs.rs110 RTC_GENERAL_DEVICE_IDA.lock().free(self.id); in drop()

12