Skip to main content

Module util

Module util 

Source
Expand description

Utility commands: uptime, dmesg, echo, env, whoami, grep, setenv, unsetenv

Re-exportsยง

use crate::shell::is_interrupted; ๐Ÿ”’
use crate::shell::ShellError; ๐Ÿ”’
use crate::shell_println; ๐Ÿ”’
use crate::vfs; ๐Ÿ”’
use alloc::string::String; ๐Ÿ”’
pub use audit::cmd_audit;
pub use date::cmd_date;
pub use dmesg::cmd_dmesg;
pub use echo::cmd_echo;
pub use env::cmd_env;
pub use env::cmd_setenv;
pub use env::cmd_unsetenv;
pub use env::init_shell_env;
pub use env::shell_getenv;
pub use env::shell_setenv;
pub use env::shell_unsetenv;
pub use grep::cmd_grep;
pub use ntpdate::cmd_ntpdate;
pub use uptime::cmd_uptime;
pub use watch::cmd_watch;
pub use whoami::cmd_whoami;

Modulesยง

audit ๐Ÿ”’
date ๐Ÿ”’
dmesg ๐Ÿ”’
echo ๐Ÿ”’
env ๐Ÿ”’
grep ๐Ÿ”’
ntpdate ๐Ÿ”’
uptime ๐Ÿ”’
watch ๐Ÿ”’
whoami ๐Ÿ”’

Structsยง

KernelLogBuffer ๐Ÿ”’
KlogEntry ๐Ÿ”’

Constantsยง

KLOG_CAPACITY ๐Ÿ”’

Staticsยง

KLOG ๐Ÿ”’

Functionsยง

cmd_dmesg_impl ๐Ÿ”’
cmd_echo_impl ๐Ÿ”’
cmd_grep_impl ๐Ÿ”’
Search for lines matching a pattern in a file or piped input.
cmd_uptime_impl ๐Ÿ”’
cmd_whoami_impl ๐Ÿ”’
klog_write