diff options
-rw-r--r-- | share/man/man9/device_set_desc.9 | 9 |
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 |