/DragonOS-0.1.2/user/libs/libc/src/math/ |
D | pow.c | 4 int64_t pow(int64_t x, int y) in pow() 6 int64_t res = 1; in pow()
|
/DragonOS-0.1.2/kernel/src/common/math/ |
D | pow.c | 4 int64_t pow(int64_t x, int y) in pow() 12 int64_t res = 1; in pow()
|
/DragonOS-0.1.2/kernel/src/libs/ |
D | idr.c | 166 int64_t id = 0; in __idr_get_empty_slot() 215 int64_t __id = (int64_t)id; in __idr_mark_full() 223 int64_t layer_id = __id & IDR_MASK; in __idr_mark_full() 250 int64_t __id = (int64_t)id; in __idr_get_path() 271 int64_t layer_id = (__id >> (layer * IDR_BITS)) & IDR_MASK; in __idr_get_path() 296 int64_t __id = (int64_t)id; in __idr_erase_full() 304 int64_t layer_id = __id & IDR_MASK; in __idr_erase_full() 364 int64_t id = __idr_get_empty_slot(idp, stk); in __idr_get_new_above_int() 402 int64_t __id = (int64_t)id; in idr_remove() 444 int64_t id = __lowbit_id(cur_layer->bitmap); in __idr_remove_all_with_free() [all …]
|
/DragonOS-0.1.2/kernel/src/common/ |
D | math.h | 10 int64_t pow(int64_t x, int y);
|
D | wait_queue.h | 52 void wait_queue_wakeup(wait_queue_node_t *wait_queue_head, int64_t state); 118 void wait_queue_wakeup_on_stack(wait_queue_head_t *q, int64_t state);
|
/DragonOS-0.1.2/user/libs/libc/src/ |
D | math.h | 12 int64_t pow(int64_t x, int y);
|
D | unistd.h | 74 void *sbrk(int64_t increment); 82 int64_t chdir(char *dest_path);
|
D | stdio.h | 31 int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color);
|
D | unistd.c | 101 void *sbrk(int64_t increment) in sbrk() 119 int64_t chdir(char *dest_path) in chdir()
|
D | printf.c | 35 int64_t put_string(char *str, uint64_t front_color, uint64_t bg_color) in put_string() 291 str = write_num(str, va_arg(args, int64_t), 16, field_width, precision, flags); in vsprintf() 321 ip = (int64_t *)va_arg(args, int *); in vsprintf() 382 int64_t signed_num = (int64_t)num; in write_num()
|
D | malloc.c | 130 static int malloc_enlarge(int64_t size) in malloc_enlarge() 140 int64_t free_space = brk_max_addr - brk_managed_addr; in malloc_enlarge() 328 if ((int64_t)(ck->length) - size > sizeof(malloc_mem_chunk_t)) in malloc() 358 … int64_t delta = ((brk_max_addr - (uint64_t)malloc_free_list_end) & PAGE_2M_MASK) - PAGE_2M_SIZE; in release_brk()
|
D | dirent.c | 57 int64_t getdents(int fd, struct dirent *dirent, long count) in getdents()
|
/DragonOS-0.1.2/user/libs/libc/src/sys/ |
D | types.h | 15 typedef int64_t pid_t; 23 typedef int64_t off_t; 31 typedef int64_t time_t;
|
/DragonOS-0.1.2/docs/userland/libc/apis/api-list/ |
D | math.md | 21 ``int64_t pow(int64_t x,int y)`` 返回 x 的 y 次方
|
D | unistd.md | 41 ``void *sbrk(int64_t increment)`` : 47 ``int64_t chdir(char *dest_path)``
|
/DragonOS-0.1.2/kernel/src/common/sys/ |
D | types.h | 15 typedef int64_t pid_t; 23 typedef int64_t off_t; 31 typedef int64_t time_t;
|
/DragonOS-0.1.2/kernel/src/driver/tty/ |
D | tty.c | 62 long tty_read(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in tty_read() 76 long tty_write(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in tty_write()
|
/DragonOS-0.1.2/kernel/src/syscall/ |
D | syscall.c | 156 int64_t count = (int64_t)regs->r10; in sys_read() 196 int64_t count = (int64_t)regs->r10; in sys_write() 279 if ((int64_t)regs->r8 == -1) in sys_brk() 284 if ((int64_t)regs->r8 == -2) in sys_brk() 292 int64_t offset; in sys_brk() 294 offset = (int64_t)(new_brk - current_pcb->mm->brk_end); in sys_brk() 296 offset = -(int64_t)(current_pcb->mm->brk_end - new_brk); in sys_brk() 313 if ((int64_t)regs->r8 > 0) in sys_sbrk() 329 uint64_t new_brk = mm_do_brk(current_pcb->mm->brk_end, (int64_t)regs->r8); // 调整堆内存空间 in sys_sbrk()
|
/DragonOS-0.1.2/kernel/src/filesystem/procfs/ |
D | procfs.c | 19 static int64_t proc_create_file(const char *path, mode_t type, long pid); 21 static long simple_procfs_read(void *to, int64_t count, long *position, void *from, int64_t availab… 175 static long procfs_read(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) in procfs_read() 197 static long simple_procfs_read(void *to, int64_t count, long *position, void *from, int64_t availab… in simple_procfs_read() 203 int64_t ret = 0; in simple_procfs_read() 218 static long procfs_write(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) in procfs_write() 341 int64_t retval = 0; in procfs_create() 379 int64_t retval = 0; in procfs_mkdir() 446 int64_t procfs_register_pid(long pid) in procfs_register_pid() 476 static int64_t proc_create_file(const char *path, mode_t type, long pid) in proc_create_file()
|
D | procfs.h | 43 int64_t procfs_register_pid(long pid);
|
/DragonOS-0.1.2/kernel/src/filesystem/VFS/ |
D | VFS.h | 188 long (*read)(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position); 189 long (*write)(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position); 270 int64_t vfs_mkdir(const char *path, mode_t mode, bool from_userland); 279 int64_t vfs_rmdir(const char *path, bool from_userland);
|
/DragonOS-0.1.2/kernel/src/mm/ |
D | mmio-buddy.h | 29 int64_t num_free; // 空闲页的数量
|
/DragonOS-0.1.2/kernel/src/time/ |
D | timer.h | 8 #define MAX_TIMEOUT (int64_t)((1ul << 63) - 1)
|
/DragonOS-0.1.2/kernel/src/filesystem/fat32/ |
D | fat32.c | 573 long fat32_read(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) in fat32_read() 604 int64_t bytes_remain = count; in fat32_read() 609 int64_t retval = 0; in fat32_read() 626 int64_t step_trans_len = 0; // 当前循环传输的字节数 in fat32_read() 662 long fat32_write(struct vfs_file_t *file_ptr, char *buf, int64_t count, long *position) in fat32_write() 670 int64_t flags = 0; in fat32_write() 694 int64_t bytes_remain = count; in fat32_write() 700 int64_t retval = 0; in fat32_write() 721 int64_t step_trans_len = 0; // 当前循环传输的字节数 in fat32_write() 855 int64_t retval = 0; in fat32_create() [all …]
|
/DragonOS-0.1.2/kernel/src/driver/keyboard/ |
D | ps2_keyboard.c | 102 long ps2_keyboard_read(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in ps2_keyboard_read() 121 long ps2_keyboard_write(struct vfs_file_t *filp, char *buf, int64_t count, long *position) in ps2_keyboard_write()
|