/DragonOS/user/apps/user-manage/ |
H A D | Cargo.toml | 8 path = "src/cmd/useradd.rs" 12 path = "src/cmd/userdel.rs" 16 path = "src/cmd/usermod.rs" 20 path = "src/cmd/passwd.rs" 24 path = "src/cmd/groupadd.rs" 28 path = "src/cmd/groupdel.rs" 32 path = "src/cmd/groupmod.rs"
|
/DragonOS/kernel/crates/wait_queue_macros/src/ |
H A D | lib.rs | 14 ($wq:expr, $condition: expr, $cmd: expr) => {{ 17 retval = wait_queue_macros::_wq_wait_event_interruptible!($wq, $condition, $cmd); 27 ($wq:expr, $condition: expr, $cmd: expr) => {{ 29 $cmd; 37 ($wq:expr, $condition: expr, $interruptible: expr, $ret: expr, $cmd:expr) => {{ 52 $cmd;
|
/DragonOS/kernel/src/bpf/ |
H A D | mod.rs | 14 pub fn sys_bpf(cmd: u32, attr: *mut u8, size: u32) -> Result<usize> { in sys_bpf() 17 let cmd = bpf_cmd::from_u32(cmd).ok_or(SystemError::EINVAL)?; in sys_bpf() localVariable 18 bpf(cmd, attr) in sys_bpf() 22 pub fn bpf(cmd: bpf_cmd, attr: &bpf_attr) -> Result<usize> { in bpf() 23 let res = match cmd { in bpf() 37 error!("bpf cmd {:?} not implemented", cmd); in bpf()
|
/DragonOS/kernel/src/driver/disk/ahci/ |
H A D | hba.rs | 52 pub cmd: u32, // 0x18, command and status field 149 while volatile_read!(self.cmd) & HBA_PORT_CMD_CR > 0 { in start() 152 let val: u32 = volatile_read!(self.cmd) | HBA_PORT_CMD_FRE | HBA_PORT_CMD_ST; in start() 153 volatile_write!(self.cmd, val); in start() 161 self.cmd, in stop() 162 (u32::MAX ^ HBA_PORT_CMD_ST) & volatile_read!(self.cmd) in stop() 166 while volatile_read!(self.cmd) & (HBA_PORT_CMD_FR | HBA_PORT_CMD_CR) in stop() 175 self.cmd, in stop() 176 (u32::MAX ^ HBA_PORT_CMD_FRE) & volatile_read!(self.cmd) in stop() 262 volatile_write!(self.cmd, volatile_read!(self.cmd) | 1 << 2 | 1 << 1); in init()
|
/DragonOS/docs/community/code_contribution/ |
H A D | c-coding-style.md | 24 switch (cmd) 28 pack->blk_pak.cmd = AHCI_CMD_READ_DMA_EXT; 32 pack->blk_pak.cmd = AHCI_CMD_WRITE_DMA_EXT; 36 pack->blk_pak.cmd = cmd;
|
/DragonOS/user/apps/user-manage/src/cmd/ |
H A D | groupmod.rs | 37 let cmd = GroupParser::parse(args); in main() localVariable 38 if !cmd.options.is_empty() { in main() 39 let info = GModCheck::check(cmd); in main()
|
H A D | usermod.rs | 37 let cmd = UserParser::parse(args); in main() localVariable 38 if !cmd.options.is_empty() { in main() 39 let info = UModCheck::check(cmd); in main()
|
H A D | passwd.rs | 20 let cmd = PasswdParser::parse(args); in main() localVariable 21 let info = PasswdCheck::check(cmd); in main()
|
H A D | useradd.rs | 37 let cmd = UserParser::parse(args); in main() localVariable 38 let info = UAddCheck::check(cmd); in main()
|
H A D | userdel.rs | 37 let cmd = UserParser::parse(args); in main() localVariable 38 let info = UDelCheck::check(cmd); in main()
|
H A D | groupadd.rs | 37 let cmd = GroupParser::parse(args); in main() localVariable 38 let info = GAddCheck::check(cmd); in main()
|
H A D | groupdel.rs | 37 let cmd = GroupParser::parse(args); in main() localVariable 38 let info = GDelCheck::check(cmd); in main()
|
/DragonOS/user/apps/user-manage/src/check/ |
H A D | check.rs | 4 parser::cmd::{CmdOption, GroupCommand, PasswdCommand, UserCommand}, 24 pub fn check(cmd: UserCommand) -> UAddInfo { in check() 26 info.username = cmd.username; in check() 29 for (option, arg) in cmd.options.iter() { in check() 194 pub fn check(cmd: UserCommand) -> UDelInfo { in check() 196 info.username = cmd.username; in check() 207 if let Some(_) = cmd.options.get(&CmdOption::Remove) { in check() 250 pub fn check(cmd: UserCommand) -> UModInfo { in check() 251 let mut info = Self::parse_options(&cmd.options); in check() 252 info.username = cmd.username; in check() [all …]
|
/DragonOS/kernel/src/libs/futex/ |
H A D | syscall.rs | 27 let cmd = FutexArg::from_bits(operation.bits() & FutexFlag::FUTEX_CMD_MASK.bits()) in do_futex() localVariable 38 if cmd != FutexArg::FUTEX_WAIT_BITSET in do_futex() 39 && cmd != FutexArg::FUTEX_WAIT_REQUEUE_PI in do_futex() 40 && cmd != FutexArg::FUTEX_LOCK_PI2 in do_futex() 46 match cmd { in do_futex()
|
/DragonOS/user/apps/test_sqlite3/ |
H A D | main.c | 53 char cmd[256] = {0}; in query_test() local 54 sprintf(cmd, in query_test() 58 exec(db, cmd); in query_test()
|
/DragonOS/user/apps/user-manage/src/parser/ |
H A D | mod.rs | 2 pub mod cmd; module
|
/DragonOS/user/apps/user-manage/src/ |
H A D | lib.rs | 2 pub mod cmd; module
|
/DragonOS/kernel/src/arch/x86_64/kvm/ |
H A D | mod.rs | 53 pub fn kvm_arch_dev_ioctl(cmd: u32, _arg: usize) -> Result<usize, SystemError> { in kvm_arch_dev_ioctl() 54 error!("unknown kvm ioctl cmd: {}", cmd); in kvm_arch_dev_ioctl()
|
/DragonOS/kernel/src/arch/riscv64/kvm/ |
H A D | mod.rs | 17 pub fn kvm_arch_dev_ioctl(cmd: u32, _arg: usize) -> Result<usize, SystemError> { in kvm_arch_dev_ioctl()
|
/DragonOS/kernel/src/virt/kvm/ |
H A D | kvm_dev.rs | 139 cmd: u32, in ioctl() 143 match cmd { in ioctl() 158 _ => KVMArch::kvm_arch_dev_ioctl(cmd, data), in ioctl()
|
H A D | vcpu_dev.rs | 147 cmd: u32, in ioctl() 151 match cmd { in ioctl()
|
H A D | vm_dev.rs | 145 cmd: u32, in ioctl() 149 match cmd { in ioctl()
|
/DragonOS/docs/kernel/trace/ |
H A D | eBPF.md | 119 eBPF相关的系统调用都集中在`bpf()` 上,通过参数cmd来进一步区分功能,目前对其支持如下: 122 pub fn bpf(cmd: bpf_cmd, attr: &bpf_attr) -> Result<usize> { 123 let res = match cmd { 137 error!("bpf cmd {:?} not implemented", cmd); 141 unimplemented!("bpf cmd {:?} not implemented", ty)
|
/DragonOS/kernel/src/driver/tty/ |
H A D | tty_device.rs | 344 fn ioctl(&self, cmd: u32, arg: usize, data: &FilePrivateData) -> Result<usize, SystemError> { in ioctl() 351 match cmd { in ioctl() 358 if cmd != TtyIoctlCmd::TIOCCBRK { in ioctl() 365 match cmd { in ioctl() 399 _ => match TtyJobCtrlManager::job_ctrl_ioctl(tty.clone(), cmd, arg) { in ioctl() 411 match tty.ioctl(tty.clone(), cmd, arg) { in ioctl() 421 tty.ldisc().ioctl(tty, cmd, arg)?; in ioctl()
|
H A D | tty_job_control.rs | 72 pub fn job_ctrl_ioctl(tty: Arc<TtyCore>, cmd: u32, arg: usize) -> Result<usize, SystemError> { in job_ctrl_ioctl() 73 match cmd { in job_ctrl_ioctl()
|