aboutsummaryrefslogtreecommitdiff
path: root/lib/libdevctl/devctl.3
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libdevctl/devctl.3')
-rw-r--r--lib/libdevctl/devctl.317
1 files changed, 15 insertions, 2 deletions
diff --git a/lib/libdevctl/devctl.3 b/lib/libdevctl/devctl.3
index 34d1c03c2840..a6823a0b3c6a 100644
--- a/lib/libdevctl/devctl.3
+++ b/lib/libdevctl/devctl.3
@@ -22,8 +22,6 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $FreeBSD$
-.\"
.Dd April 4, 2019
.Dt DEVCTL 3
.Os
@@ -36,6 +34,7 @@
.Nm devctl_disable ,
.Nm devctl_enable ,
.Nm devctl_freeze ,
+.Nm devctl_getpath ,
.Nm devctl_rescan ,
.Nm devctl_reset ,
.Nm devctl_resume ,
@@ -62,6 +61,8 @@
.Ft int
.Fn devctl_freeze "void"
.Ft int
+.Fn devctl_getpath "const char *device" "const char *locator" "char **buffer"
+.Ft int
.Fn devctl_rescan "const char *device"
.Ft int
.Fn devctl_reset "const char *device" "bool detach"
@@ -199,6 +200,18 @@ function rescans a bus device checking for devices that have been added or
removed.
.Pp
The
+.Fn devctl_getpath
+retrieves the path to the
+.Fa device
+from the kernel using the
+.Fa locator
+method to construct the path.
+The
+.Fa buffer
+pointer is updated with an allocated buffer that must be freed with
+.Xr free .
+.Pp
+The
.Fn devctl_freeze
function freezes probe and attach processing initiated in response to
drivers being loaded.