Home
last modified time | relevance | path

Searched refs:u64 (Results 1 – 11 of 11) sorted by relevance

/DragonOS-0.1.2/kernel/src/process/
Dprocess.rs17 let state: u64 = unsafe { read_volatile(&(*pcb).state) } as u64; in process_is_stopped()
18 if (state & (PROC_STOPPED as u64)) != 0 { in process_is_stopped()
36 _state: u64, in process_try_to_wake_up() argument
48 write_volatile(&mut pcb.state, PROC_RUNNING as u64); in process_try_to_wake_up()
60 write_volatile(&mut pcb.state, PROC_RUNNING as u64); in process_try_to_wake_up()
75 pub extern "C" fn process_wake_up_state(pcb: *mut process_control_block, state: u64) -> bool { in process_wake_up_state()
Dfork.rs23 pub extern "C" fn process_copy_sighand(clone_flags: u64, pcb: *mut process_control_block) -> i32 { in process_copy_sighand() argument
26 if (clone_flags & (CLONE_SIGHAND as u64)) != 0 { in process_copy_sighand()
46 let mut flags: u64 = 0; in process_copy_sighand()
70 if (clone_flags & (CLONE_CLEAR_SIGHAND as u64)) != 0 { in process_copy_sighand()
82 pub extern "C" fn process_copy_signal(clone_flags: u64, pcb: *mut process_control_block) -> i32 { in process_copy_signal() argument
85 if (clone_flags & (CLONE_THREAD as u64)) != 0 { in process_copy_signal()
/DragonOS-0.1.2/kernel/src/ipc/
Dsignal.rs42 _sa_handler: NULL as u64,
46 sa_restorer: NULL as u64,
53 _sa_handler: NULL as u64,
57 sa_restorer: NULL as u64,
64 pub extern "C" fn sys_kill(regs: &pt_regs) -> u64 { in sys_kill() argument
70 return (-(EINVAL as i64)) as u64; in sys_kill()
89 let retval = signal_kill_something_info(sig, Some(&mut info), pid) as u64; in sys_kill()
160 let mut flags: u64 = 0; in signal_send_sig_info()
180 flags: &mut u64, in lock_process_sighand() argument
202 fn unlock_process_sighand(pcb: &mut process_control_block, flags: u64) { in unlock_process_sighand() argument
[all …]
Dsignal_types.rs21 pub type sigset_t = u64;
23 pub type __signalfn_t = u64;
26 pub type __sigrestorer_fn_t = u64;
34 pub const STACK_ALIGN: u64 = 16;
79 _sa_handler: NULL as u64, in default()
85 pub const SA_FLAG_DFL: u64 = 1u64 << 0; // 当前sigaction表示系统默认的动作
86 pub const SA_FLAG_IGN: u64 = 1u64 << 1; // 当前sigaction表示忽略信号的动作
87 pub const SA_FLAG_RESTORER: u64 = 1u64 << 2; // 当前sigaction具有用户指定的restorer
88 pub const SA_FLAG_IMMUTABLE: u64 = 1u64 << 3; // 当前sigaction不可被更改
91 pub const SA_ALL_FLAGS: u64 = SA_FLAG_IGN | SA_FLAG_DFL | SA_FLAG_RESTORER | SA_FLAG_IMMUTABLE;
[all …]
/DragonOS-0.1.2/kernel/src/arch/x86_64/asm/
Dirqflags.rs4 pub fn local_irq_save(flags: &mut u64) { in local_irq_save() argument
11 pub fn local_irq_restore(flags: &u64) { in local_irq_restore() argument
Dbitops.rs9 pub fn ffz(x: u64) -> i32 { in ffz()
Dcurrent.rs10 let mut tmp: u64 = !(32767u64); in current_pcb()
/DragonOS-0.1.2/kernel/src/libs/
Dspinlock.rs10 pub fn spin_lock_irqsave(lock: *mut spinlock_t, flags: &mut u64) { in spin_lock_irqsave() argument
19 pub fn spin_unlock_irqrestore(lock: *mut spinlock_t, flags: &u64) { in spin_unlock_irqrestore() argument
/DragonOS-0.1.2/kernel/src/mm/
Dallocator.rs21 return kmalloc(layout.size() as u64, gfp) as *mut u8; in local_alloc()
28 return kmalloc(layout.size() as u64, gfp | __GFP_ZERO) as *mut u8; in local_alloc_zeroed()
/DragonOS-0.1.2/kernel/src/
Dlib.rs73 process_do_exit(u64::MAX); in panic()
/DragonOS-0.1.2/docs/community/ChangeLog/V0.1.x/
DV0.1.2.md50 - ffz函数:获取u64中的第一个值为0的bit (#100)
265 * ffz函数:获取u64中的第一个值为0的bit