Searched refs:user_mode (Results 1 – 8 of 8) sorted by relevance
/DragonOS-0.1.7/kernel/src/arch/x86_64/asm/ |
D | ptrace.rs | 6 pub fn user_mode(regs: *const pt_regs) -> bool { in user_mode() function
|
/DragonOS-0.1.7/kernel/src/process/ |
D | ptrace.h | 39 static inline int user_mode(struct pt_regs *regs) in user_mode() function
|
/DragonOS-0.1.7/kernel/src/syscall/ |
D | syscall.h | 18 #define SYSCALL_FROM_USER(regs) (user_mode(regs))
|
/DragonOS-0.1.7/kernel/src/filesystem/vfs/ |
D | syscall.rs | 6 arch::asm::{current::current_pcb, ptrace::user_mode}, 75 if user_mode(regs) && unsafe { !verify_area(buf_vaddr as u64, len as u64) } { in sys_read() 104 if user_mode(regs) && unsafe { !verify_area(buf_vaddr as u64, len as u64) } { in sys_write() 178 || (user_mode(regs) && unsafe { !verify_area(ptr as u64, PAGE_2M_SIZE as u64) }) in sys_chdir() 269 || (user_mode(regs) && unsafe { !verify_area(ptr as u64, PAGE_2M_SIZE as u64) }) in sys_mkdir() 309 || (user_mode(regs) && unsafe { !verify_area(ptr as u64, PAGE_2M_SIZE as u64) }) in sys_unlink_at()
|
/DragonOS-0.1.7/kernel/src/sched/ |
D | core.rs | 4 arch::asm::{current::current_pcb, ptrace::user_mode}, 178 if user_mode(regs) { in sys_sched()
|
/DragonOS-0.1.7/kernel/src/smp/ |
D | smp.c | 220 if (user_mode(regs)) in __smp_kick_cpu_handler()
|
/DragonOS-0.1.7/docs/community/ChangeLog/V0.1.x/ |
D | V0.1.2.md | 263 * 将原有的判断pt_regs是否来自用户态的代码,统一改为调用user_mode函数
|
/DragonOS-0.1.7/kernel/src/ipc/ |
D | signal.rs | 10 asm::{bitops::ffz, current::current_pcb, ptrace::user_mode}, 437 if current_pcb().sig_pending.signal == 0 || (!user_mode(regs)) { in do_signal()
|