Home
last modified time | relevance | path

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

/DragonOS-0.1.3/kernel/src/arch/x86_64/asm/
Dcmpxchg.rs3 fn __try_cmpxchg_q(ptr: *mut u64, old_ptr: *mut u64, new_ptr: *mut u64) -> bool; in __try_cmpxchg_q() argument
9 pub unsafe fn try_cmpxchg_q(ptr: *mut u64, old_ptr: *mut u64, new_ptr: *mut u64) -> bool { in try_cmpxchg_q() argument
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.3/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()
Dpid.rs26 pub extern "C" fn sys_getpid(_regs: &pt_regs)->u64{ in sys_getpid() argument
27 return current_pcb().pid as u64; in sys_getpid()
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.3/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
71 return (-(EINVAL as i64)) as u64; in sys_kill()
99 return x as u64; in sys_kill()
175 let mut flags: u64 = 0; in signal_send_sig_info()
195 flags: &mut u64, in lock_process_sighand() argument
217 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.3/kernel/src/exception/
Dsoftirq.rs12 const MAX_SOFTIRQ_NUM: u64 = 64;
13 const MAX_LOCK_TRIAL_TIME: u64 = 50;
42 pending: u64,
43 running: u64,
69 pub extern "C" fn raise_softirq(sirq_num: u64) { in raise_softirq() argument
139 pub fn get_softirq_pending(&self) -> u64 { in get_softirq_pending() argument
145 pub fn get_softirq_running(&self) -> u64 { in get_softirq_running() argument
198 if unsafe { verify_area(action.unwrap() as u64, 1) } { in register_softirq()
239 while (softirq_index as u64) < MAX_SOFTIRQ_NUM && self.pending != 0 { in do_softirq()
/DragonOS-0.1.3/kernel/src/sched/
Dcore.rs78 pub extern "C" fn sys_sched(regs: &'static mut pt_regs) -> u64 { in sys_sched() argument
81 return (-(EPERM as i64)) as u64; in sys_sched()
Dcfs.rs140 current_pcb().flags |= PF_NEED_SCHED as u64; in timer_update_jiffies()
154 current_pcb().flags &= !(PF_NEED_SCHED as u64); in sched()
160 if (current_pcb().state & (PROC_RUNNING as u64)) == 0 in sched()
165 if current_pcb().state & (PROC_RUNNING as u64) != 0 { in sched()
/DragonOS-0.1.3/kernel/src/libs/
Dlockref.rs64 *(&mut new as *mut LockRef as *mut usize as *mut u64) = in cmpxchg_loop()
65 read_volatile(&mut old as *mut LockRef as *mut usize as *mut u64); in cmpxchg_loop()
105 self as *mut LockRef as *mut usize as *mut u64, in cmpxchg_loop()
106 &mut old as *mut LockRef as *mut usize as *mut u64, in cmpxchg_loop()
107 &mut new as *mut LockRef as *mut usize as *mut u64, in cmpxchg_loop()
Dspinlock.rs13 pub fn spin_lock_irqsave(lock: *mut spinlock_t, flags: &mut u64) { in spin_lock_irqsave() argument
22 pub fn spin_unlock_irqrestore(lock: *mut spinlock_t, flags: &u64) { in spin_unlock_irqrestore() argument
/DragonOS-0.1.3/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.3/kernel/src/
Dlib.rs78 process_do_exit(u64::MAX); in panic()
/DragonOS-0.1.3/docs/community/ChangeLog/V0.1.x/
DV0.1.2.md50 - ffz函数:获取u64中的第一个值为0的bit (#100)
265 * ffz函数:获取u64中的第一个值为0的bit