/DragonOS/kernel/src/libs/ |
H A D | cpumask.rs | 30 mask.set(cpu, true); in from_cpu() 69 pub fn set(&mut self, cpu: ProcessorId, value: bool) -> Option<bool> { in set() method 70 self.bmp.set(cpu.data() as usize, value) in set() 86 set: true, in iter_cpu() 96 set: false, in iter_zero_cpu() 128 set: bool, field 137 if self.set { in next() 146 if self.set { in next()
|
/DragonOS/kernel/crates/rbpf/mk/ |
H A D | appveyor.bat | 8 set VCVARSALL="C:\Program Files (x86)\Microsoft Visual Studio %TOOLCHAIN_VERSION%\VC\vcvarsall.bat" 11 set TARGET_ARCH=x86_64 12 set TARGET_PROGRAM_FILES=%ProgramFiles% 20 set TARGET_ARCH=i686 21 set TARGET_PROGRAM_FILES=%ProgramFiles(x86)% 39 set RUST_URL=https://static.rust-lang.org/dist/rust-%RUST%-%TARGET_ARCH%-pc-windows-msvc.msi 51 set PATH="%TARGET_PROGRAM_FILES%\Rust %RUST%\bin";%cd%\windows_build_tools;%PATH% 53 if [%Configuration%] == [Release] set CARGO_MODE=--release 55 set
|
/DragonOS/kernel/src/include/bindings/ |
H A D | linux_bpf.rs | 67 pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) { in set() function 206 self._bitfield_1.set(0usize, 4u8, val as u64) in set_dst_reg() 217 self._bitfield_1.set(4usize, 4u8, val as u64) in set_src_reg() 223 __bindgen_bitfield_unit.set(0usize, 4u8, { 227 __bindgen_bitfield_unit.set(4usize, 4u8, { 1023 self._bitfield_1.set(0usize, 1u8, val as u64) in set_gpl_compatible() 1029 __bindgen_bitfield_unit.set(0usize, 1u8, { 1571 self._bitfield_1.set(0usize, 1u8, val as u64) in set_disabled() 1582 self._bitfield_1.set(1usize, 1u8, val as u64) in set_inherit() 1593 self._bitfield_1.set(2usize, 1u8, val as u64) in set_pinned() [all …]
|
/DragonOS/docs/ |
H A D | make.bat | 8 set SPHINXBUILD=sphinx-build 10 set SOURCEDIR=. 11 set BUILDDIR=_build 19 echo.installed, then set the SPHINXBUILD environment variable to point
|
/DragonOS/kernel/src/smp/ |
H A D | syscall.rs | 9 pub fn getaffinity(_pid: i32, set: &mut [u8]) -> Result<usize, SystemError> { in getaffinity() 12 set[0..src.len()].copy_from_slice(src); in getaffinity()
|
/DragonOS/kernel/crates/bitmap/tests/ |
H A D | alloc-bitmap.rs | 75 bitmap.set(0, true); in test_alloc_bitmap_32_first_1() 116 bitmap.set(15, true); in test_alloc_bitmap_32_middle_1() 158 bitmap.set(31, true); in test_alloc_bitmap_32_last_1() 200 bitmap.set(0, true); in test_alloc_bitmap_64_first_1() 241 bitmap.set(15, true); in test_alloc_bitmap_64_middle_1() 283 bitmap.set(63, true); in test_alloc_bitmap_64_last_1() 325 bitmap.set(0, true); in test_alloc_bitmap_64_two_1_first() 326 bitmap.set(63, true); in test_alloc_bitmap_64_two_1_first() 366 bitmap.set(15, true); in test_alloc_bitmap_64_two_1_middle() 367 bitmap.set(63, true); in test_alloc_bitmap_64_two_1_middle() [all …]
|
H A D | static-bitmap.rs | 75 bitmap.set(0, true); in test_static_bitmap_32_first_1() 116 bitmap.set(15, true); in test_static_bitmap_32_middle_1() 158 bitmap.set(31, true); in test_static_bitmap_32_last_1() 200 bitmap.set(0, true); in test_static_bitmap_64_first_1() 241 bitmap.set(15, true); in test_static_bitmap_64_middle_1() 283 bitmap.set(63, true); in test_static_bitmap_64_last_1() 325 bitmap.set(0, true); in test_static_bitmap_64_two_1_first() 326 bitmap.set(63, true); in test_static_bitmap_64_two_1_first() 366 bitmap.set(15, true); in test_static_bitmap_64_two_1_middle() 367 bitmap.set(63, true); in test_static_bitmap_64_two_1_middle() [all …]
|
/DragonOS/kernel/src/driver/scsi/ |
H A D | mod.rs | 55 inner.id_bmp.set(idx, true); in alloc_id() 72 self.inner().id_bmp.set(id, false); in free_id()
|
/DragonOS/tools/ |
H A D | .gdbinit | 3 set follow-fork-mode child
|
/DragonOS/kernel/src/driver/tty/tty_ldisc/ |
H A D | ntty.rs | 502 self.read_flags.set(ntty_buf_mask(self.read_head), true); in receive_special_char() 515 self.read_flags.set(ntty_buf_mask(self.read_head), true); in receive_special_char() 543 self.read_flags.set(ntty_buf_mask(self.read_head), true); in receive_special_char() 978 self.read_flags.set(tail, false); in canon_skip_eof() 1067 self.read_flags.set(eol, false); in canon_copy_from_read_buf() 1929 .set((read_head - 1) & (NTTY_BUFSIZE - 1), true); in set_termios() 1962 ldata.char_map.set('\r' as usize, true); in set_termios() 1967 ldata.char_map.set('\n' as usize, true); in set_termios() 1974 .set(contorl_chars[ControlCharIndex::VERASE] as usize, true); in set_termios() 1977 .set(contorl_chars[ControlCharIndex::VKILL] as usize, true); in set_termios() [all …]
|
/DragonOS/kernel/crates/bitmap/src/ |
H A D | static_bitmap.rs | 49 fn set(&mut self, index: usize, value: bool) -> Option<bool> { in set() function 50 return self.core.set(N, &mut self.data, index, value); in set()
|
H A D | alloc_bitmap.rs | 38 fn set(&mut self, index: usize, value: bool) -> Option<bool> { in set() method 39 return self.core.set(self.elements, &mut self.data, index, value); in set()
|
H A D | traits.rs | 8 fn set(bits: &mut Self, index: usize, value: bool) -> bool; in set() method 38 fn set(bits: &mut Self, index: usize, value: bool) -> bool { 233 fn set(&mut self, index: usize, value: bool) -> Option<bool>; in set() method
|
H A D | bitmap_core.rs | 33 pub(crate) fn set(&self, n: usize, data: &mut [T], index: usize, value: bool) -> Option<bool> { in set() method 41 let bit = <T as BitOps>::set(element, bit_index, value); in set()
|
/DragonOS/kernel/src/driver/firmware/efi/ |
H A D | memmap.rs | 145 inner_guard.init_flags.set(EFIInitFlags::MEMMAP, true); in do_efi_memmap_init() 164 inner_guard.init_flags.set(EFIInitFlags::MEMMAP, false); in efi_memmap_unmap()
|
H A D | init.rs | 155 .set(EFIInitFlags::BOOT, true); in uefi_init() 161 .set(EFIInitFlags::EFI_64BIT, true); in uefi_init()
|
/DragonOS/kernel/src/mm/ |
H A D | no_init.rs | 70 self.bmp.set(index, true); in allocate_page() 90 self.bmp.set(index, false); in free_page()
|
H A D | memblock.rs | 365 set: bool, in set_or_clear_flags() 375 if set { in set_or_clear_flags()
|
/DragonOS/kernel/src/smp/cpu/ |
H A D | mod.rs | 119 if let Some(prev) = p.possible_cpus.set(cpu, value) { in set_possible_cpu() 149 if let Some(prev) = p.present_cpus.set(cpu, value) { in set_present_cpu()
|
/DragonOS/kernel/src/driver/clocksource/ |
H A D | timer_riscv.rs | 102 .set(smp_get_processor_id().data() as usize, true) in riscv_sbi_timer_init_local()
|
/DragonOS/docs/kernel/debug/ |
H A D | debug-kernel-with-gdb.md | 331 set listsize <count> #设置list命令显示的源代码行数。默认情况下,list命令显示当前行和其周围的几行代码。 348 set var <variable_name>=<value> #设置变量值
|
/DragonOS/kernel/src/driver/tty/virtual_terminal/ |
H A D | virtual_console.rs | 279 self.tab_stop.set(i, true); in reset() 930 self.tab_stop.set(self.state.x, true); in do_getpars() 1368 self.tab_stop.set(self.state.x, true); in do_control() 1998 pub fn make_cursor(size: u32, change: u32, set: u32) -> Self { in make_cursor() 1999 unsafe { Self::from_bits_unchecked(size | (change << 8) | (set << 16)) } in make_cursor()
|
/DragonOS/kernel/src/ipc/ |
H A D | shm.rs | 468 pub fn set_mode(&mut self, shmflg: ShmFlags, set: bool) { in set_mode() 469 if set { in set_mode()
|
/DragonOS/kernel/src/exception/ |
H A D | softirq.rs | 181 cpu_pending(smp_get_processor_id()).set(VecStatus::from(softirq_num), false); in unregister_softirq()
|
/DragonOS/kernel/src/driver/block/ |
H A D | virtio_blk.rs | 128 inner.id_bmp.set(idx, true); in alloc_id() 145 self.inner().id_bmp.set(id, false); in free_id()
|