Home
last modified time | relevance | path

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

/DragonOS-0.1.8/kernel/src/driver/pci/
Dpci_irq.c31 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/
Dirq.c192 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/
Dx86_64_ipi.c42 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/
Dcasting.rs69 let p = Arc::into_raw(x); in downcast_arc() localVariable
70 let new = unsafe { Arc::from_raw(p as *const T) }; in downcast_arc()
Dlz4.c199 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 …]
Dmutex.rs137 for p in inner.wait_list.iter() { in check_pid_in_wait_list()
138 if p.pid == pid { in check_pid_in_wait_list()
Didr.c33 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/
Duser_access.rs27 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/
Dmain.c100 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/
Dprocess.rs319 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/
Dtty_device.rs121 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/
Dc_adapter.rs119 let p = guard.remove(&vaddr); in kfree() localVariable
122 if p.is_none() { in kfree()
126 let (vaddr, len, cap) = p.unwrap(); in kfree()
Ducontext.rs180 for page in new_vma_guard.pages().map(|p| p.virt_address()) { in try_clone()
/DragonOS-0.1.8/kernel/src/common/
Dglib.h29 typeof(((type *)0)->member) *p = (ptr); \
30 (type *)((unsigned long)p - (unsigned long)&(((type *)0)->member)); \
/DragonOS-0.1.8/kernel/src/sched/
Dcore.rs83 Some(p) => { in do_sched()
84 next = p; in do_sched()
/DragonOS-0.1.8/tools/
Drun-qemu.sh33 ARGS=`getopt -o p -l bios:,display: -- "$@"`
Dwrite_disk_image.sh18 ARGS=`getopt -o p -l bios: -- "$@"`
/DragonOS-0.1.8/kernel/src/net/
Dsyscall.rs706 Some(p) => Ok(p), in try_from()
827 Some(p) => Ok(p), in try_from()
916 Some(p) => Ok(p), in try_from()
Dsocket.rs728 let endpoint = if let Some(p) = socket.remote_endpoint() { in read()
729 p in read()
/DragonOS-0.1.8/docs/community/code_contribution/
Dc-coding-style.md126 void *func(char* s, int **p);
/DragonOS-0.1.8/kernel/src/filesystem/procfs/
Dmod.rs355 FilePrivateData::Procfs(p) => p, in close()
385 FilePrivateData::Procfs(p) => p, in read_at()
/DragonOS-0.1.8/
DREADME.md17 [关于DragonOS,你想了解的都在这儿 - DragonOS](https://dragonos.org/?p=46)
DREADME_EN.md9 [All you want to know about DragonOS is here - DragonOS](https://dragonos.org/?p=46)
/DragonOS-0.1.8/kernel/src/driver/disk/ahci/
Dahci.h288 uint8_t p : 1; // Prefetchable member
/DragonOS-0.1.8/kernel/src/ipc/
Dsignal_types.rs550 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()