Home
last modified time | relevance | path

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

/DragonOS/kernel/crates/intertrait/tests/
H A Don-trait-impl-assoc-type2.rs14 fn concat(&self, a: Self::I1, b: Self::I2) -> String; in concat()
22 fn concat(&self, a: Self::I1, b: Self::I2) -> String { in concat()
23 format!("Data: {} - {}", a, b) in concat()
H A Don-trait-impl-assoc-type3.rs14 fn concat(&self, prefix: T, a: Self::I1, b: Self::I2) -> String; in concat()
22 fn concat(&self, prefix: String, a: Self::I1, b: Self::I2) -> String { in concat()
23 format!("{}: {} - {}", prefix, a, b) in concat()
/DragonOS/kernel/src/libs/
H A Dnotifier.rs37 for b in self.0.iter() { in register()
39 if Arc::ptr_eq(&block, b) { in register()
47 if block.priority() > b.priority() { in register()
52 if block.priority() == b.priority() && unique_priority { in register()
66 let remove = self.0.extract_if(|b| Arc::ptr_eq(&block, b)); in unregister()
93 for b in self.0.iter() { in call_chain()
97 ret = b.notifier_call(action, data); in call_chain()
H A Dalign.rs24 const fn max(a: usize, b: usize) -> usize { in max()
25 if a > b { in max()
28 b in max()
H A Drbtree.rs1806 let mut b = RBTree::new(); in test_extend_iter() localVariable
1807 b.insert(2, "two"); in test_extend_iter()
1808 b.insert(3, "three"); in test_extend_iter()
1810 a.extend(b); in test_extend_iter()
/DragonOS/docs/kernel/debug/
H A Ddebug-kernel-with-gdb.md114   您可以使用`break`或者`b`命令来设置断点。
116   关于`break`或者`b`命令的使用:
119 b <line_number> #在当前活动源文件的相应行号打断点
121 b <file>:<line_number> #在对应文件的相应行号打断点
123 b <function_name> #为一个命名函数打断点
141 &emsp;&emsp;您可以通过`info b`,`info break`或者`info breakpoints`来查看所有的断点信息:
144 (gdb) b 309
148 (gdb) info b
188 print <expression> # 打印合法表达式的值,例如:print a+b 或者 p a+b
204 display <expression> # 打印合法表达式的值,例如:display a+b
/DragonOS/kernel/crates/rust-slabmalloc/src/
H A Dpages.rs65 for (base_idx, b) in self.iter().enumerate() { in first_fit()
66 let bitval = b.load(Ordering::Relaxed); in first_fit()
265 for b in self.bitfield().iter() { in free_obj_count()
266 let bitval = b.load(Ordering::Relaxed); in free_obj_count()
365 pub(crate) fn iter_mut<'b: 'a>(&mut self) -> ObjectPageIterMut<'b, T> { in iter_mut() argument
378 pub(crate) fn insert_front<'b>(&'b mut self, mut new_head: &'a mut T) { in insert_front()
428 pub(crate) fn pop<'b>(&'b mut self) -> Option<&'a mut T> { in pop()
H A Dsc.rs18 const fn cmin(a: usize, b: usize) -> usize { in cmin()
19 [a, b][(a > b) as usize] in cmin()
24 fn cmin(a: usize, b: usize) -> usize { in cmin()
25 core::cmp::min(a, b) in cmin()
/DragonOS/kernel/crates/intertrait/src/
H A Dhasher.rs26 .fold(0u64, |result, b| (result << 8) | *b as u64); in write()
/DragonOS/kernel/crates/rbpf/src/
H A Dhelpers.rs216 let mut b = arg2; in strcmp() localVariable
219 let mut b_val = *(b as *const u8); in strcmp()
222 b += 1; in strcmp()
224 b_val = *(b as *const u8); in strcmp()
H A Dassembler.rs188 let (a, b, c) = (operands_tuple(operands))?; in encode()
189 match (inst_type, a, b, c) { in encode()
H A Djit.rs154 fn emit_rex(&self, mem: &mut JitMemory, w: u8, r: u8, x: u8, b: u8) { in emit_rex()
158 assert_eq!((b | 1), 1); in emit_rex()
159 self.emit1(mem, 0x40 | (w << 3) | (r << 2) | (x << 1) | b); in emit_rex()
/DragonOS/user/apps/http_server/
H A Dmain.c16 #define min(a, b) ((a) < (b) ? (a) : (b)) argument
/DragonOS/user/apps/test_bind/
H A Dmain.c13 #define min(a, b) ((a) < (b) ? (a) : (b)) argument
/DragonOS/kernel/src/driver/open_firmware/
H A Dfdt.rs384 pub fn find_node_by_compatible<'b>( in find_node_by_compatible()
386 fdt: &'b Fdt<'b>, in find_node_by_compatible() argument
387 compatible: &'b str, in find_node_by_compatible()
388 ) -> impl Iterator<Item = fdt::node::FdtNode<'b, 'b>> + 'b { in find_node_by_compatible() argument
/DragonOS/docs/
H A Dmake.bat25 exit /b 1
/DragonOS/docs/community/code_contribution/
H A Dc-coding-style.md56 if(b)
/DragonOS/kernel/crates/bitmap/src/
H A Dbitmap_core.rs64 if let Some(b) = bit { in first_index()
65 return Some(i * T::bit_size() + b); in first_index()
/DragonOS/kernel/src/time/
H A Dclocksource.rs125 pub fn new(b: u64) -> Self { in new()
126 Self { bits: b } in new()
130 pub fn new(b: u64) -> Self { in new()
131 Self { bits: b } in new()
/DragonOS/kernel/src/driver/video/fbdev/base/fbcon/
H A Dframebuffer_console.rs263 let b = y_break - sy; in con_clear() localVariable
268 b as u32, in con_clear()
273 fb_data.display.real_y((sy + b) as u32), in con_clear()
275 (height - b) as u32, in con_clear()
/DragonOS/kernel/src/filesystem/fat/
H A Dentry.rs1147 for b in &self.name1 { in flush()
1148 cursor.write_u16(*b)?; in flush()
1155 for b in &self.name2 { in flush()
1156 cursor.write_u16(*b)?; in flush()
1161 for b in &self.name3 { in flush()
1162 cursor.write_u16(*b)?; in flush()
/DragonOS/kernel/src/libs/lib_ui/
H A Dtextui.rs251 pub const fn new(r: u8, g: u8, b: u8) -> Self { in new()
252 let val = ((r as u32) << 16) | ((g as u32) << 8) | (b as u32); in new()
/DragonOS/
H A DLICENSE98 b) You must cause any work that you distribute or publish, that in
142 b) Accompany it with a written offer, valid for at least three
153 an offer, in accord with Subsection b above.)
/DragonOS/kernel/crates/intertrait/macros/
H A DLICENSE-APACHE97 (b) You must cause any modified files to carry prominent notices
/DragonOS/kernel/crates/rbpf/
H A DLICENSE-APACHE98 (b) You must cause any modified files to carry prominent notices