/DragonOS-0.1.8/kernel/src/libs/ |
D | ffi_convert.rs | 9 pub fn __convert_mut<'a, S, D>(src: *mut S) -> Option<&'a mut D> { in __convert_mut() argument 13 pub fn __convert_ref<'a, S, D>(src: *const S) -> Option<&'a D> { in __convert_ref() argument
|
D | rbtree.rs | 435 impl<'a, K, V> Index<&'a K> for RBTree<K, V> 477 pub struct Keys<'a, K: Ord + 'a, V: 'a> { 478 inner: Iter<'a, K, V>, 481 impl<'a, K: Ord, V> Clone for Keys<'a, K, V> { 482 fn clone(&self) -> Keys<'a, K, V> { in clone() argument 489 impl<'a, K: Ord + Debug, V> fmt::Debug for Keys<'a, K, V> { 495 impl<'a, K: Ord, V> Iterator for Keys<'a, K, V> { 496 type Item = &'a K; 499 fn next(&mut self) -> Option<&'a K> { in next() 522 pub struct Values<'a, K: 'a + Ord, V: 'a> { [all …]
|
D | spinlock.rs | 174 pub struct SpinLockGuard<'a, T: 'a> { 175 lock: &'a SpinLock<T>, 179 impl<'a, T: 'a> SpinLockGuard<'a, T> { 189 pub unsafe fn leak(this: Self) -> &'a mut T { in leak()
|
D | bitree.c | 8 #define smaller(root, a, b) (root->cmp((a)->value, (b)->value) == -1) argument 9 #define equal(root, a, b) (root->cmp((a)->value, (b)->value) == 0) argument 10 #define greater(root, a, b) (root->cmp((a)->value, (b)->value) == 1) argument 20 struct bt_root_t *bt_create_tree(struct bt_node_t *node, int (*cmp)(void *a, void *b), int (*releas… in bt_create_tree() argument
|
D | rwlock.rs | 42 pub struct RwLockReadGuard<'a, T: 'a> { 44 lock: &'a AtomicU32, 51 pub struct RwLockUpgradableGuard<'a, T: 'a> { 53 inner: &'a RwLock<T>, 59 pub struct RwLockWriteGuard<'a, T: 'a> { 61 inner: &'a RwLock<T>,
|
D | mutex.rs | 39 pub struct MutexGuard<'a, T: 'a> { 40 lock: &'a Mutex<T>,
|
D | align.rs | 22 const fn max(a: usize, b: usize) -> usize { in max() 23 if a > b { in max() 24 a in max()
|
D | cpu.c | 112 uint32_t a = 0, b = 0, c = 0, d = 0; in cpu_get_core_crysral_freq() local 116 : "=a"(a), "=b"(b), "=c"(c), "=d"(d) in cpu_get_core_crysral_freq()
|
/DragonOS-0.1.8/kernel/src/ktest/ |
D | test-idr.c | 70 int a[128]; in ktest_idr_case1() local 75 assert(idr_alloc(&k_idr, &a[i], &a[i]) == 0); in ktest_idr_case1() 76 assert(a[i] == i); in ktest_idr_case1() 82 int *ptr = idr_find(&k_idr, a[i]); in ktest_idr_case1() 83 assert(ptr == &a[i]); in ktest_idr_case1() 85 assert(*ptr == a[i]); in ktest_idr_case1() 91 int *id = idr_remove(&k_idr, a[i]); in ktest_idr_case1() 94 assert(idr_find(&k_idr, a[i]) == NULL); in ktest_idr_case1() 100 int *id = idr_remove(&k_idr, a[i]); in ktest_idr_case1() 103 assert(idr_find(&k_idr, a[i]) == NULL); in ktest_idr_case1() [all …]
|
D | test-bitree.c | 15 static int compare(void *a, void *b) in compare() argument 17 if (((struct test_value_t *)a)->tv > ((struct test_value_t *)b)->tv) in compare() 19 else if (((struct test_value_t *)a)->tv == ((struct test_value_t *)b)->tv) in compare()
|
/DragonOS-0.1.8/kernel/src/driver/virtio/ |
D | virtio.rs | 74 fn virtio_device_search<'a>( in virtio_device_search() 75 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in virtio_device_search() 76 ) -> Result<LinkedList<&'a mut PciDeviceStructureGeneralDevice>, VirtioError> { in virtio_device_search() 86 fn get_virtio_net_device<'a>( in get_virtio_net_device() 87 list: &'a mut RwLockWriteGuard<'_, LinkedList<Box<dyn PciDeviceStructure>>>, in get_virtio_net_device() 88 ) -> Result<&'a mut PciDeviceStructureGeneralDevice, VirtioError> { in get_virtio_net_device()
|
/DragonOS-0.1.8/ |
D | LICENSE | 33 For example, if you distribute copies of such a program, whether 34 gratis or for a fee, you must give the recipients all the rights that 51 patents. We wish to avoid the danger that redistributors of a free 63 a notice placed by the copyright holder saying it may be distributed 65 refers to any such program or work, and a "work based on the Program" 67 that is to say, a work containing the Program or a portion of it, 75 is covered only if its contents constitute a work based on the 84 and give any other recipients of the Program a copy of this License 87 You may charge a fee for the physical act of transferring a copy, and 88 you may at your option offer warranty protection in exchange for a fee. [all …]
|
D | .gitignore | 11 *.a
|
/DragonOS-0.1.8/docs/kernel/locking/ |
D | rwlock.md | 36 pub struct RwLockReadGuard<'a, T: 'a> { 38 lock: &'a AtomicU32, 44 pub struct RwLockUpgradableGuard<'a, T: 'a> { 46 inner: &'a RwLock<T>, 52 pub struct RwLockWriteGuard<'a, T: 'a> { 54 inner: &'a RwLock<T>,
|
/DragonOS-0.1.8/kernel/src/common/ |
D | bitree.h | 17 int (*cmp)(void *a, void *b); // 比较函数 a>b 返回1, a==b返回0, a<b返回-1 33 struct bt_root_t *bt_create_tree(struct bt_node_t *node, int (*cmp)(void *a, void *b), int (*releas…
|
/DragonOS-0.1.8/kernel/src/process/ |
D | exec.rs | 96 pub struct ExecParam<'a> { 97 file_path: &'a str, 115 impl<'a> ExecParam<'a> { 116 pub fn new(file_path: &'a str, vm: Arc<AddressSpace>, flags: ExecParamFlags) -> Self { in new() 126 pub fn file_path(&self) -> &'a str { in file_path()
|
/DragonOS-0.1.8/kernel/src/ |
D | Makefile | 7 lib_patterns := *.a 41 … $(shell find . -name "*.o") ../target/x86_64-unknown-none/release/libdragonos_kernel.a -T link.lds 58 …ind . -name "*.o") ../target/x86_64-unknown-none/release/libdragonos_kernel.a ./debug/kallsyms.o …
|
/DragonOS-0.1.8/docs/community/code_contribution/ |
D | c-coding-style.md | 53 if(a) return 1; 106 if(a) 125 char *a;
|
/DragonOS-0.1.8/user/apps/http_server/ |
D | main.c | 16 #define min(a, b) ((a) < (b) ? (a) : (b)) argument
|
/DragonOS-0.1.8/user/apps/test_bind/ |
D | main.c | 14 #define min(a, b) ((a) < (b) ? (a) : (b)) argument
|
/DragonOS-0.1.8/docs/userland/libc/apis/api-list/ |
D | string.md | 11 ``int strcmp(const char *a,const char *b)`` 比较字符串的字典序
|
/DragonOS-0.1.8/user/apps/test_signal/ |
D | Makefile | 5 …utput_dir)/test_signal $(shell find . -name "*.o") $(OLD_LIBC_INSTALL_PATH)/lib/libc.a -T link.lds
|
/DragonOS-0.1.8/kernel/src/driver/net/ |
D | virtio_net.rs | 133 impl<'a, T: Transport> VirtioNetToken<T> { 143 type RxToken<'a> = VirtioNetToken<T> where Self: 'a; 144 type TxToken<'a> = VirtioNetToken<T> where Self: 'a;
|
/DragonOS-0.1.8/user/apps/about/ |
D | Makefile | 8 …tmp_output_dir)/about $(shell find . -name "*.o") $(OLD_LIBC_INSTALL_PATH)/lib/libc.a -T about.lds
|
/DragonOS-0.1.8/user/ |
D | Makefile | 5 GARBAGE_PATTERNS := *.o sys_api_lib *.a 98 …$(AR) x $(ROOT_PATH)/user/libs/libc/target/x86_64-unknown-none/release/liblibc.a --output=$(ROOT_P… 99 …$(AR) crvs $(OLD_LIBC_INSTALL_PATH)/lib/libc.a $(shell find ./libs/* -name "*.o") $(shell find $(R…
|