/DragonOS-0.1.5/kernel/src/exception/ |
D | irq.c | 156 irq_desc_t *p = NULL; in irq_register() local 158 p = &interrupt_desc[irq_num - 32]; in irq_register() 160 p = &local_apic_interrupt_desc[irq_num - 150]; in irq_register() 166 p->controller = controller; in irq_register() 167 if (p->irq_name == NULL) in irq_register() 170 p->irq_name = (char *)kmalloc(namelen, 0); in irq_register() 171 memset(p->irq_name, 0, namelen); in irq_register() 172 strncpy(p->irq_name, irq_name, namelen); in irq_register() 175 p->parameter = paramater; in irq_register() 176 p->flags = 0; in irq_register() [all …]
|
/DragonOS-0.1.5/kernel/src/arch/x86_64/ |
D | x86_64_ipi.c | 42 irq_desc_t *p = &SMP_IPI_desc[irq_num - 200]; in ipi_regiserIPI() local 43 p->controller = NULL; // 由于ipi不涉及到具体的硬件操作,因此不需要controller in ipi_regiserIPI() 44 p->irq_name = irq_name; in ipi_regiserIPI() 45 p->parameter = param; in ipi_regiserIPI() 46 p->flags = 0; in ipi_regiserIPI() 47 p->handler = handler; in ipi_regiserIPI()
|
/DragonOS-0.1.5/kernel/src/mm/ |
D | mm.c | 168 struct Page *p = z->pages_group; in mm_init() local 170 for (int j = 0; j < z->count_pages; ++j, ++p) in mm_init() 172 p->zone = z; in mm_init() 173 p->addr_phys = addr_start + PAGE_2M_SIZE * j; in mm_init() 174 p->attr = 0; in mm_init() 176 p->ref_counts = 0; in mm_init() 177 p->age = 0; in mm_init() 180 …*(memory_management_struct.bmp + ((p->addr_phys >> PAGE_2M_SHIFT) >> 6)) ^= (1UL << ((p->addr_phys… in mm_init() 341 ul *p = memory_management_struct.bmp + (j >> 6); in alloc_pages() local 348 if (!((k ? ((*p >> k) | (*(p + 1) << (64 - k))) : *p) & tmp_num)) in alloc_pages() [all …]
|
/DragonOS-0.1.5/kernel/src/libs/ |
D | lz4.c | 199 void LZ4_free(void *p); 202 #define FREEMEM(p) LZ4_free(p) argument 207 #define FREEMEM(p) kfree(p) argument 211 #define MEM_INIT(p, v, s) memset((p), (v), (s)) argument 413 const BYTE *p = (const BYTE *)memPtr; in LZ4_readLE16() local 414 return (U16)((U16)p[0] + (p[1] << 8)); in LZ4_readLE16() 426 BYTE *p = (BYTE *)memPtr; in LZ4_writeLE16() local 427 p[0] = (BYTE)value; in LZ4_writeLE16() 428 p[1] = (BYTE)(value >> 8); in LZ4_writeLE16() 940 LZ4_FORCE_INLINE U32 LZ4_hashPosition(const void *const p, tableType_t const tableType) in LZ4_hashPosition() argument [all …]
|
D | mutex.rs | 136 for p in inner.wait_list.iter() { in check_pid_in_wait_list() 137 if p.pid == pid { in check_pid_in_wait_list()
|
D | idr.c | 33 static void __move_to_free_list(struct idr *idp, struct idr_layer *p) in __move_to_free_list() argument 39 p->ary[0] = idp->free_list; in __move_to_free_list() 41 idp->free_list = p; in __move_to_free_list() 116 static void __idr_layer_free(struct idr_layer *p) in __idr_layer_free() argument 118 kfree(p); in __idr_layer_free()
|
/DragonOS-0.1.5/kernel/src/libs/libUI/ |
D | screen_manager.c | 47 …struct Page *p = alloc_pages(ZONE_NORMAL, PAGE_2M_ALIGN(video_frame_buffer_info.size) / PAGE_2M_SI… in __create_buffer() local 48 if (p == NULL) in __create_buffer() 50 buf->vaddr = (uint64_t)phys_2_virt(p->addr_phys); in __create_buffer()
|
/DragonOS-0.1.5/kernel/src/common/ |
D | glib.h | 29 typeof(((type *)0)->member) *p = (ptr); \ 30 (type *)((unsigned long)p - (unsigned long)&(((type *)0)->member)); \
|
/DragonOS-0.1.5/kernel/src/sched/ |
D | core.rs | 85 Some(p) => { in __sched() 86 next = p; in __sched()
|
/DragonOS-0.1.5/tools/ |
D | run-qemu.sh | 3 ARGS=`getopt -o p -l bios: -- "$@"`
|
D | write_disk_image.sh | 18 ARGS=`getopt -o p -l bios: -- "$@"`
|
/DragonOS-0.1.5/docs/community/code_contribution/ |
D | c-coding-style.md | 126 void *func(char* s, int **p);
|
/DragonOS-0.1.5/kernel/src/filesystem/procfs/ |
D | mod.rs | 353 FilePrivateData::Procfs(p) => p, in close() 383 FilePrivateData::Procfs(p) => p, in read_at()
|
/DragonOS-0.1.5/ |
D | README.md | 13 [关于DragonOS,你想了解的都在这儿 - DragonOS](https://dragonos.org/?p=46)
|
D | README_EN.md | 9 [All you want to know about DragonOS is here - DragonOS](https://dragonos.org/?p=46)
|
/DragonOS-0.1.5/kernel/src/driver/disk/ahci/ |
D | ahci.h | 288 uint8_t p : 1; // Prefetchable member
|
/DragonOS-0.1.5/kernel/src/ipc/ |
D | signal_types.rs | 549 pub fn from_c_void(p: *mut c_void) -> &'static mut SigQueue { in from_c_void() 550 let sq = p as *mut SigQueue; in from_c_void()
|