Home
last modified time | relevance | path

Searched refs:user_mode (Results 1 – 8 of 8) sorted by relevance

/DragonOS-0.1.7/kernel/src/arch/x86_64/asm/
Dptrace.rs6 pub fn user_mode(regs: *const pt_regs) -> bool { in user_mode() function
/DragonOS-0.1.7/kernel/src/process/
Dptrace.h39 static inline int user_mode(struct pt_regs *regs) in user_mode() function
/DragonOS-0.1.7/kernel/src/syscall/
Dsyscall.h18 #define SYSCALL_FROM_USER(regs) (user_mode(regs))
/DragonOS-0.1.7/kernel/src/filesystem/vfs/
Dsyscall.rs6 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/
Dcore.rs4 arch::asm::{current::current_pcb, ptrace::user_mode},
178 if user_mode(regs) { in sys_sched()
/DragonOS-0.1.7/kernel/src/smp/
Dsmp.c220 if (user_mode(regs)) in __smp_kick_cpu_handler()
/DragonOS-0.1.7/docs/community/ChangeLog/V0.1.x/
DV0.1.2.md263 * 将原有的判断pt_regs是否来自用户态的代码,统一改为调用user_mode函数
/DragonOS-0.1.7/kernel/src/ipc/
Dsignal.rs10 asm::{bitops::ffz, current::current_pcb, ptrace::user_mode},
437 if current_pcb().sig_pending.signal == 0 || (!user_mode(regs)) { in do_signal()