mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-22 17:24:23 +01:00
Add device_set_desc_copy(9).
This commit is contained in:
parent
edf52b48c7
commit
b99b8460af
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51021
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user