Skip to main content

Module util

Module util 

Source
Expand description

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

Modulesยง

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

Structsยง

KernelLogBuffer ๐Ÿ”’
KlogEntry ๐Ÿ”’

Constantsยง

KLOG_CAPACITY ๐Ÿ”’

Staticsยง

KLOG ๐Ÿ”’

Functionsยง

cmd_audit
Display recent audit log entries.
cmd_date
Display the current kernel time.
cmd_dmesg
Show recent kernel log entries.
cmd_dmesg_impl ๐Ÿ”’
cmd_echo
Echo arguments to shell output.
cmd_echo_impl ๐Ÿ”’
cmd_env
Display all shell environment variables.
cmd_grep
Search for matching lines in file or piped input.
cmd_grep_impl ๐Ÿ”’
Search for lines matching a pattern in a file or piped input.
cmd_ntpdate
cmd_setenv
Set a shell environment variable: setenv KEY=VALUE.
cmd_unsetenv
Remove a shell environment variable: unsetenv KEY.
cmd_uptime
Show uptime and basic runtime counters.
cmd_uptime_impl ๐Ÿ”’
cmd_watch
Execute a command repeatedly at a given interval.
cmd_whoami
Display current silo and task identity.
cmd_whoami_impl ๐Ÿ”’
init_shell_env
Initialize kernel shell environment with default values.
klog_write
shell_getenv
Get a shell environment variable by key.
shell_setenv
Set a shell environment variable.
shell_unsetenv
Remove a shell environment variable.