Home
last modified time | relevance | path

Searched refs:n (Results 1 – 14 of 14) sorted by relevance

/DragonOS-0.1.2/kernel/src/common/
Dlist.h221 #define list_for_each_safe(ptr, n, head) \ argument
222 for ((ptr) = (head)->next, (n) = (ptr)->next; (ptr) != (head); (ptr) = n, n = (ptr)->next)
232 #define list_for_each_prev_safe(ptr, n, head) \ argument
233 for ((ptr) = (head)->prev, (n) = (ptr)->prev; (ptr) != (head); (ptr) = n, n = (ptr)->prev)
255 #define list_for_each_entry_safe(pos, n, head, member) \ argument
256 for (pos = list_first_entry(head, typeof(*pos), member), n = list_next_entry(pos, member); \
258 pos = n, n = list_next_entry(n, member))
302 #define list_for_each_entry_safe_continue(pos, n, head, member) \ argument
303 for (pos = list_next_entry(pos, member), n = list_next_entry(pos, member); \
305 pos = n, n = list_next_entry(n, member))
[all …]
Dcompletion.h30 void wait_for_multicompletion(struct completion x[], int n);
/DragonOS-0.1.2/kernel/src/exception/
Dgate.h100 void set_tss_descriptor(unsigned int n, void *addr) in set_tss_descriptor() argument
105 …*(unsigned long *)(phys_2_virt(GDT_Table + n)) = (limit & 0xffff) | (((unsigned long)addr & 0xffff… in set_tss_descriptor()
106 …*(unsigned long *)(phys_2_virt(GDT_Table + n + 1)) = (((unsigned long)addr >> 32) & 0xffffffff) | … in set_tss_descriptor()
114 #define load_TR(n) \ argument
117 __asm__ __volatile__("ltr %%ax" ::"a"((n) << 3)); \
127 void set_intr_gate(unsigned int n, unsigned char ist, void *addr) in set_intr_gate() argument
129 _set_gate(phys_2_virt(IDT_Table + n), 0x8E, ist, addr); // p=1,DPL=0, type=E in set_intr_gate()
141 void set_trap_gate(unsigned int n, unsigned char ist, void *addr) in set_trap_gate() argument
146 _set_gate(phys_2_virt(IDT_Table + n), 0x8F, ist, addr); // p=1,DPL=0, type=F in set_trap_gate()
156 void set_system_trap_gate(unsigned int n, unsigned char ist, void *addr) in set_system_trap_gate() argument
[all …]
/DragonOS-0.1.2/user/libs/libc/src/
Dstdlib.c23 int n = 0, neg = 0; in atoi() local
43 n = 10 * n - (*str++ - '0'); in atoi()
46 return neg ? n : -n; in atoi()
/DragonOS-0.1.2/kernel/src/libs/
Dstdlib.c15 unsigned long n = neg ? -input : input; in ltoa() local
20 *pos-- = '0' + n % 10; in ltoa()
21 n /= 10; in ltoa()
24 } while (n); in ltoa()
Dlz4.c198 void *LZ4_calloc(size_t n, size_t s);
/DragonOS-0.1.2/docs/kernel/core_api/
Dkernel_api.md244 ### `list_for_each_safe(ptr, n, head)`
258 **n** argument
266 ### `list_for_each_prev_safe(ptr, n, head)`
309 ### `list_for_each_entry_safe(pos, n, head, member)`
321 **n** argument
395 ### `list_for_each_entry_safe_continue(pos, n, head, member)`
407 **n** argument
419 ### `list_for_each_entry_safe_continue_reverse(pos, n, head, member)`
429 ### `list_for_each_entry_safe_from(pos, n, head, member)` argument
Dmm-api.md15 &emsp;&emsp;kmalloc用于获取那些小于2M内存页大小的内存对象。可分配的内存对象大小为32bytes~1MBytes. 且分配的内存块大小、起始地址按照2的n次幂进行对齐。(比如,申…
/DragonOS-0.1.2/docs/introduction/
Dbuild_system.md102 echo -e "[source.crates-io] \n \
103 registry = \"https://github.com/rust-lang/crates.io-index\" \n \
104 \n \
105 replace-with = 'dragonos-gitee' \n \
106 [source.dragonos-gitee] \n \
107 registry = \"https://gitee.com/DragonOS/crates.io-index.git\" \n \
/DragonOS-0.1.2/tools/
Dcreate_hdd_image.sh18 n
/DragonOS-0.1.2/docs/kernel/memory_management/
Dmmio.md27 3. `mmio_create`对申请的地址空间大小按照2的n次幂进行对齐,然后从buddy中申请内存地址空间
/DragonOS-0.1.2/kernel/src/sched/
Dcompletion.c199 void wait_for_multicompletion(struct completion x[], int n) in wait_for_multicompletion() argument
201 for (int i = 0; i < n; i++) // 对每一个completion都等一遍 in wait_for_multicompletion()
/DragonOS-0.1.2/docs/kernel/sched/
Dwaiting.md178 | wait_for_multicompletion(struct completion x[], int n)| 将当前进程挂起,并设置挂起状态为PROC_UNINTERRUPTIBLE。(等待数…
/DragonOS-0.1.2/kernel/
Dcbindgen.toml263 # as `#[repr(align(n))]`. This string must be a function-like macro which takes
264 # a single argument (the requested alignment, `n`). For instance, a macro
265 # `#define`d as `ALIGNED(n)` in `header` which translates to
266 # `__attribute__((aligned(n)))` would be a reasonable value if targeting
269 # default: `#[repr(align(n))]` types will be treated as opaque, since it