Home
last modified time | relevance | path

Searched refs:space (Results 1 – 6 of 6) sorted by relevance

/DragonOS/kernel/src/driver/block/cache/
H A Dcached_block_device.rs30 unsafe fn space() -> Result<&'static mut LockedCacheSpace, BlockCacheError> { in space() function
131 let space = unsafe { space()? }; in read_one_block() localVariable
132 space.read(cache_block_addr, position, buf) in read_one_block()
167 let space = unsafe { space()? }; in insert_one_block() localVariable
168 space.insert(lba_id, data) in insert_one_block()
198 pub fn new(space: CacheSpace) -> Self { in new()
199 LockedCacheSpace(RwLock::new(space)) in new()
/DragonOS/kernel/src/mm/
H A Dc_adapter.rs33 let space: Vec<u8> = vec![0u8; size]; in do_kmalloc() localVariable
35 assert!(space.len() == size); in do_kmalloc()
36 let (ptr, len, cap) = space.into_raw_parts(); in do_kmalloc()
H A Ducontext.rs1291 if let Some(space) = guard.user_address_space.clone() { in is_foreign()
1292 if let Some(space) = space.upgrade() { in is_foreign()
1293 return AddressSpace::is_current(&space); in is_foreign()
/DragonOS/kernel/src/driver/tty/tty_ldisc/
H A Dntty.rs1171 let space = tty.write_room(tty.core()); in process_output_block() localVariable
1174 if nr > space { in process_output_block()
1175 nr = space in process_output_block()
1254 let mut space = tty.write_room(tty.core()); in echoes() localVariable
1255 let ospace = space; in echoes()
1266 return Ok(ospace - space); in echoes()
1274 if space == 0 { in echoes()
1286 space -= 1; in echoes()
1302 return Ok(ospace - space); in echoes()
1319 if num_bs > space { in echoes()
[all …]
/DragonOS/kernel/crates/rbpf/
H A DREADME.md8 Rust (user-space) virtual machine for eBPF
34 tcpdump so as to avoid useless copies to user-space. It was ported to Linux,
37 virtual machine of this crate enables running it in user-space applications;
651 instance; or they can be handled in user space. Rust has arrays and hashmaps,
692 * Provide built-in support for user-space array and hash BPF maps.
719 * [uBPF](https://github.com/iovisor/ubpf), a C user-space implementation of an
/DragonOS/docs/community/ChangeLog/V0.1.x/
H A DV0.1.10.md242 * Add slab free space calculation and add it to freeram of sysinfo