/DragonOS/kernel/crates/rust-slabmalloc/src/ |
H A D | zone.rs | 133 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 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/crates/ida/src/ |
H A D | lib.rs | 133 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 D | misc.rs | 45 sysinfo.freeram = mem.free().bytes() as u64 + slab_usage.free(); in sysinfo()
|
/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)
|
/DragonOS/kernel/crates/rbpf/ |
H A D | LICENSE-MIT | 3 Permission is hereby granted, free of charge, to any
|
/DragonOS/kernel/src/driver/virtio/ |
H A D | sysfs.rs | 284 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 D | mod.rs | 178 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 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 | 412 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 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 | 119 PLATFORM_DEVID_IDA.lock().free(pdevid.0 as usize); in device_add()
|
/DragonOS/kernel/src/namespaces/ |
H A D | pid_namespace.rs | 87 ns.id_alloctor.write().free(id); in put_pid()
|
/DragonOS/kernel/src/driver/rtc/ |
H A D | sysfs.rs | 110 RTC_GENERAL_DEVICE_IDA.lock().free(self.id); in drop()
|