Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150797853
D26664.id77897.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D26664.id77897.diff
View Options
Index: head/bin/kenv/kenv.1
===================================================================
--- head/bin/kenv/kenv.1
+++ head/bin/kenv/kenv.1
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd May 11, 2012
+.Dd October 5, 2020
.Dt KENV 1
.Os
.Sh NAME
@@ -102,6 +102,44 @@
.Sq =
is acceptable as part of a name.
Quotes are optional and necessary only if the value contains whitespace.
+.Sh EXAMPLES
+Show kernel probe hints variable names and filter for the uart
+device
+.Bd -literal -offset indent
+$ kenv -h -N | grep uart
+hint.uart.0.at
+hint.uart.0.flags
+hint.uart.0.irq
+hint.uart.0.port
+hint.uart.1.at
+hint.uart.1.irq
+hint.uart.1.port
+.Ed
+.Pp
+Show the value of a specific variable:
+.Bd -literal -offset indent
+$ kenv hint.uart.1.at
+isa
+.Ed
+.Pp
+Same as above but adding the name of the variable in the report:
+.Bd -literal -offset indent
+$ kenv -v hint.uart.1.at
+hint.uart.1.at="isa"
+.Ed
+.Pp
+Try to delete a variable and suppress warnings if any:
+.Bd -literal -offset indent
+$ kenv -q -u hint.uart.1.at
+.Ed
+.Pp
+Set the value of the
+.Ev verbose_loading
+variable
+.Bd -literal -offset indent
+$ kenv verbose_loading="YES"
+verbose_loading="YES"
+.Ed
.Sh SEE ALSO
.Xr kenv 2 ,
.Xr config 5 ,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 5, 3:15 AM (16 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30864999
Default Alt Text
D26664.id77897.diff (1 KB)
Attached To
Mode
D26664: kenv(1): Add EXAMPLES to man page
Attached
Detach File
Event Timeline
Log In to Comment