summaryrefslogtreecommitdiffstats
path: root/share/man/man9/device_set_desc.9
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-09-06 15:13:09 +0000
committerdfr <dfr@FreeBSD.org>1999-09-06 15:13:09 +0000
commit12118cc465cfede66687041b03e702fbee4f2688 (patch)
treebddd0400557abcdb9b04c0d780e127ade4437506 /share/man/man9/device_set_desc.9
parent2dd43ec810a70fa65d266e2dfc20e9ee4e3db223 (diff)
downloadFreeBSD-src-12118cc465cfede66687041b03e702fbee4f2688.zip
FreeBSD-src-12118cc465cfede66687041b03e702fbee4f2688.tar.gz
Add device_set_desc_copy(9).
Diffstat (limited to 'share/man/man9/device_set_desc.9')
-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 5f4eea4..9ca746e 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
OpenPOWER on IntegriCloud