Home
last modified time | relevance | path

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

/DragonOS-0.1.2/kernel/src/exception/
Dirq.c156 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.2/kernel/src/sched/
Dsched.c17 static int __sched_setscheduler(struct process_control_block *p, const struct sched_attr *attr, boo… in __sched_setscheduler() argument
27 p->policy = policy; in __sched_setscheduler()
31 static int _sched_setscheduler(struct process_control_block *p, int policy, const struct sched_para… in _sched_setscheduler() argument
35 return __sched_setscheduler(p, &attr, check, true); in _sched_setscheduler()
47 int sched_setscheduler(struct process_control_block *p, int policy, const struct sched_param *param) in sched_setscheduler() argument
49 return _sched_setscheduler(p, policy, param, true); in sched_setscheduler()
Dsched.h47 static int __sched_setscheduler(struct process_control_block *p, const struct sched_attr *attr, boo…
48 static int _sched_setscheduler(struct process_control_block *p, int policy, const struct sched_para…
59 int sched_setscheduler(struct process_control_block *p, int policy, const struct sched_param *param…
/DragonOS-0.1.2/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.2/kernel/src/mm/
Dmm.c168 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.2/tools/
Dbuild_in_docker.sh2 p=`pwd`
4 docker run --rm --privileged=true --cap-add SYS_ADMIN --cap-add MKNOD -v $p:/data -v /dev:/dev -v d…
Drun-qemu.sh3 ARGS=`getopt -o p -l bios: -- "$@"`
Dwrite_disk_image.sh18 ARGS=`getopt -o p -l bios: -- "$@"`
/DragonOS-0.1.2/kernel/src/filesystem/VFS/
DVFS.c40 struct vfs_filesystem_type_t *p = NULL; in vfs_mount_fs() local
41 for (p = &vfs_fs; p; p = p->next) in vfs_mount_fs()
43 if (!strcmp(p->name, name)) // 存在符合的文件系统 in vfs_mount_fs()
45 struct vfs_superblock_t *sb = p->read_superblock(blk); in vfs_mount_fs()
77 struct vfs_filesystem_type_t *p = NULL; in vfs_register_filesystem() local
78 for (p = &vfs_fs; p; p = p->next) in vfs_register_filesystem()
80 if (!strcmp(p->name, fs->name)) // 已经注册相同名称的文件系统 in vfs_register_filesystem()
91 struct vfs_filesystem_type_t *p = &vfs_fs; in vfs_unregister_filesystem() local
92 while (p->next) in vfs_unregister_filesystem()
94 if (p->next == fs) in vfs_unregister_filesystem()
[all …]
/DragonOS-0.1.2/kernel/src/libs/
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 …]
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.2/kernel/src/filesystem/fat32/
Dfat32.c329 struct vfs_index_node_t *p = vfs_alloc_inode(); in fat32_lookup() local
331 p->file_size = sinfo.de->DIR_FileSize; in fat32_lookup()
333 p->blocks = (p->file_size + fsbi->bytes_per_clus - 1) / fsbi->bytes_per_sec; in fat32_lookup()
334 p->attribute = (sinfo.de->DIR_Attr & ATTR_DIRECTORY) ? VFS_IF_DIR : VFS_IF_FILE; in fat32_lookup()
335 p->sb = parent_inode->sb; in fat32_lookup()
336 p->file_ops = &fat32_file_ops; in fat32_lookup()
337 p->inode_ops = &fat32_inode_ops; in fat32_lookup()
340 p->private_inode_info = (void *)kzalloc(sizeof(fat32_inode_info_t), 0); in fat32_lookup()
341 finode = (fat32_inode_info_t *)p->private_inode_info; in fat32_lookup()
355 if ((sinfo.de->DIR_FstClusHI >> 12) && (p->attribute & VFS_IF_FILE)) in fat32_lookup()
[all …]
/DragonOS-0.1.2/kernel/src/common/
Dglib.h29 typeof(((type *)0)->member) *p = (ptr); \
30 (type *)((unsigned long)p - (unsigned long)&(((type *)0)->member)); \
/DragonOS-0.1.2/kernel/src/libs/libUI/
Dscreen_manager.c47 …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.2/docs/community/code_contribution/
Dcoding-style.md126 void *func(char* s, int **p);
/DragonOS-0.1.2/
DREADME.md33 - [如何在电脑的虚拟机上运行DragonOS? | | 龙进的博客](https://longjin666.cn/?p=1514)
DREADME_EN.md26 …to run DragonOS on a computer's virtual machine? || Long Jin's blog](https://longjin666.cn/?p=1514)
/DragonOS-0.1.2/kernel/src/driver/disk/ahci/
Dahci.h288 uint8_t p : 1; // Prefetchable member
Dahci.c448 cmdheader->p = 1; in ahci_write()