/DragonOS/kernel/crates/rust-slabmalloc/src/ |
H A D | zone.rs | 134 let mut free = 0; in free_space() localVariable 151 free += free_obj_count * scallocator.size(); in free_space() 154 free += in free_space() 157 free as u64 in free_space() 214 free: u64, field 219 pub fn new(total: u64, free: u64) -> Self { in new() 220 Self { total, free } in new() 228 self.total - self.free in used() 231 pub fn free(&self) -> u64 { in free() method 232 self.free in free()
|
/DragonOS/kernel/src/mm/allocator/ |
H A D | page_frame.rs | 299 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 D | buddy.rs | 81 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 D | bump.rs | 172 unsafe fn free(&mut self, _address: PhysAddr, _count: PageFrameCount) { in free() method
|
H A D | kernel_allocator.rs | 59 LockedFrameAllocator.free(phy_addr, page_frame_count); in free_in_buddy()
|
/DragonOS/kernel/src/syscall/ |
H A D | misc.rs | 46 sysinfo.freeram = mem.free().bytes() as u64 + slab_usage.free(); in sysinfo()
|
/DragonOS/kernel/src/libs/ida/src/ |
H A D | lib.rs | 49 pub fn free(&self, _id: usize) { in free() method
|
/DragonOS/ |
H A D | LICENSE | 13 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 D | main.c | 114 free(buf); in main()
|
/DragonOS/kernel/crates/intertrait/ |
H A D | LICENSE-MIT | 1 Permission is hereby granted, free of charge, to any person obtaining a copy
|
/DragonOS/kernel/crates/intertrait/macros/ |
H A D | LICENSE-MIT | 1 Permission is hereby granted, free of charge, to any person obtaining a copy
|
H A D | LICENSE-APACHE | 68 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 D | V0.1.8.md | 73 - 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)
|
H A D | V0.1.9.md | 1672 实现free指令+修复 mountfs的内存泄露问题(#394) 1676 * 成功实现free指令,添加了一些string有关函数,并进行一些无影响的小改动
|
H A D | V0.1.10.md | 242 * Add slab free space calculation and add it to freeram of sysinfo
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | sysfs.rs | 283 pub fn free(&self, index: VirtIODeviceIndex) { in free() method 284 self.ida.free(index.0); in free()
|
/DragonOS/kernel/src/arch/x86_64/mm/ |
H A D | mod.rs | 622 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 D | no_init.rs | 117 unsafe fn free(&mut self, address: PhysAddr, count: PageFrameCount) { in free() method
|
/DragonOS/docs/kernel/debug/ |
H A D | debug-kernel-with-gdb.md | 46 This is free software: you are free to change and redistribute it.
|
/DragonOS/kernel/src/arch/riscv64/mm/ |
H A D | mod.rs | 358 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 D | entry.rs | 413 let mut free = 0; in find_free_entries() localVariable 442 if free == 0 { in find_free_entries() 446 free += 1; in find_free_entries() 447 if free == num_free { in find_free_entries() 455 free = 0; in find_free_entries() 462 let remain_entries = num_free - free; in find_free_entries() 483 if free > 0 { in find_free_entries()
|
/DragonOS/kernel/src/ipc/ |
H A D | shm.rs | 210 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 D | platform_device.rs | 115 PLATFORM_DEVID_IDA.free(pdevid.0 as usize); in device_add()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | sysfs.rs | 109 RTC_GENERAL_DEVICE_IDA.free(self.id); in drop()
|
/DragonOS/kernel/src/filesystem/procfs/ |
H A D | mod.rs | 258 &mut format!("MemFree:\t{} kB\n", usage.free().bytes() >> 10) in open_meminfo()
|