summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Rabson <dfr@FreeBSD.org>1999-09-06 15:13:09 +0000
committerDoug Rabson <dfr@FreeBSD.org>1999-09-06 15:13:09 +0000
commitb99b8460afb89aafb70f9002fca5b47fa36dc3b2 (patch)
treeb9dabd06e2d94d1b18f8bd8156ac2fe352261722
parentedf52b48c791675840c82d7ab782b4f1d0a398f7 (diff)
Notes
-rw-r--r--share/man/man9/device_set_desc.99
1 files changed, 8 insertions, 1 deletions
diff --git a/share/man/man9/device_set_desc.9 b/share/man/man9/device_set_desc.9
index 5f4eea446637..9ca746e8dd6a 100644
--- a/share/man/man9/device_set_desc.9
+++ b/share/man/man9/device_set_desc.9
@@ -33,6 +33,7 @@
.Os FreeBSD
.Sh NAME
.Nm device_set_desc ,
+.Nm device_set_desc_copy ,
.Nm device_get_desc
.Nd access the description of a device
.Sh SYNOPSIS
@@ -40,13 +41,19 @@
.Fd #include <sys/bus.h>
.Ft void
.Fn device_set_desc "device_t dev" "const char *desc"
+.Ft void
+.Fn device_set_desc_copy "device_t dev" "const char *desc"
.Ft const char *
.Fn device_get_desc "device_t dev"
.Sh DESCRIPTION
.Pp
Manipulate the verbose description of a device. This description (if
present) is printed as part of the message when it is attached during
-autoconfiguration.
+autoconfiguration. The variation
+.Xr device_set_desc_copy 9
+is used to set the description if the string passed is a temporary
+buffer which will be overwritten. In this case, the system will copy
+the string, otherwise the pointer passed will be used directly.
.Sh SEE ALSO
.Xr device 9
.Sh AUTHORS