/DragonOS-0.1.8/kernel/src/driver/pci/ |
D | pci_irq.c | 31 irq_desc_t *p = NULL; in c_irq_install() local 33 p = &interrupt_desc[irq_num - 32]; in c_irq_install() 35 p = &local_apic_interrupt_desc[irq_num - 150]; in c_irq_install() 41 if(p->irq_name!=NULL) in c_irq_install() 53 p->irq_name = (char *)kmalloc(namelen, 0); in c_irq_install() 54 memset(p->irq_name, 0, namelen); in c_irq_install() 55 strncpy(p->irq_name, irq_name, namelen); in c_irq_install() 56 p->parameter = parameter; in c_irq_install() 57 p->flags = 0; in c_irq_install() 58 p->handler = pci_irq_handler; in c_irq_install() [all …]
|
/DragonOS-0.1.8/kernel/src/exception/ |
D | irq.c | 192 irq_desc_t *p = NULL; in irq_register() local 194 p = &interrupt_desc[irq_num - 32]; in irq_register() 196 p = &local_apic_interrupt_desc[irq_num - 150]; in irq_register() 202 p->controller = controller; in irq_register() 203 if (p->irq_name == NULL) in irq_register() 206 p->irq_name = (char *)kmalloc(namelen, 0); in irq_register() 207 memset(p->irq_name, 0, namelen); in irq_register() 208 strncpy(p->irq_name, irq_name, namelen); in irq_register() 211 p->parameter = paramater; in irq_register() 212 p->flags = 0; in irq_register() [all …]
|
/DragonOS-0.1.8/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.8/kernel/src/libs/ |
D | casting.rs | 69 let p = Arc::into_raw(x); in downcast_arc() localVariable 70 let new = unsafe { Arc::from_raw(p as *const T) }; in downcast_arc()
|
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 | 137 for p in inner.wait_list.iter() { in check_pid_in_wait_list() 138 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.8/kernel/src/syscall/ |
D | user_access.rs | 27 let p = dest.data() as *mut u8; in clear_user() localVariable 29 p.write_bytes(0, len); in clear_user() 36 let p = dest.data() as *mut u8; in copy_to_user() localVariable 38 p.copy_from_nonoverlapping(src.as_ptr(), src.len()); in copy_to_user()
|
/DragonOS-0.1.8/user/apps/http_server/ |
D | main.c | 100 void *p = buffer; in send_file() local 103 int wsize = write(sockfd, p, min(readSize, MAX_RESPONSE_SIZE)); in send_file() 110 p += wsize; in send_file()
|
/DragonOS-0.1.8/kernel/src/process/ |
D | process.rs | 319 let p = self.address_space as *const AddressSpace; in drop_address_space() localVariable 320 if p.is_null() { in drop_address_space() 323 let p: Arc<AddressSpace> = Arc::from_raw(p); in drop_address_space() localVariable 324 drop(p); in drop_address_space()
|
/DragonOS-0.1.8/kernel/src/driver/tty/ |
D | tty_device.rs | 121 let mut p = TtyFilePrivateData::default(); in open() localVariable 126 p.flags.insert(TtyFileFlag::STDIN); in open() 129 p.flags.insert(TtyFileFlag::STDERR); in open() 131 p.flags.insert(TtyFileFlag::STDOUT); in open() 138 *data = FilePrivateData::Tty(p); in open()
|
/DragonOS-0.1.8/kernel/src/mm/ |
D | c_adapter.rs | 119 let p = guard.remove(&vaddr); in kfree() localVariable 122 if p.is_none() { in kfree() 126 let (vaddr, len, cap) = p.unwrap(); in kfree()
|
D | ucontext.rs | 180 for page in new_vma_guard.pages().map(|p| p.virt_address()) { in try_clone()
|
/DragonOS-0.1.8/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.8/kernel/src/sched/ |
D | core.rs | 83 Some(p) => { in do_sched() 84 next = p; in do_sched()
|
/DragonOS-0.1.8/tools/ |
D | run-qemu.sh | 33 ARGS=`getopt -o p -l bios:,display: -- "$@"`
|
D | write_disk_image.sh | 18 ARGS=`getopt -o p -l bios: -- "$@"`
|
/DragonOS-0.1.8/kernel/src/net/ |
D | syscall.rs | 706 Some(p) => Ok(p), in try_from() 827 Some(p) => Ok(p), in try_from() 916 Some(p) => Ok(p), in try_from()
|
D | socket.rs | 728 let endpoint = if let Some(p) = socket.remote_endpoint() { in read() 729 p in read()
|
/DragonOS-0.1.8/docs/community/code_contribution/ |
D | c-coding-style.md | 126 void *func(char* s, int **p);
|
/DragonOS-0.1.8/kernel/src/filesystem/procfs/ |
D | mod.rs | 355 FilePrivateData::Procfs(p) => p, in close() 385 FilePrivateData::Procfs(p) => p, in read_at()
|
/DragonOS-0.1.8/ |
D | README.md | 17 [关于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.8/kernel/src/driver/disk/ahci/ |
D | ahci.h | 288 uint8_t p : 1; // Prefetchable member
|
/DragonOS-0.1.8/kernel/src/ipc/ |
D | signal_types.rs | 550 pub fn from_c_void(p: *mut c_void) -> &'static mut SigQueue { in from_c_void() 551 let sq = p as *mut SigQueue; in from_c_void()
|