freebsd-dev/contrib/mdocml
John Baldwin 64de80195b Add a new device control utility for new-bus devices called devctl. This
allows the user to request administrative changes to individual devices
such as attach or detaching drivers or disabling and re-enabling devices.
- Add a new /dev/devctl2 character device which uses ioctls for device
  requests.  The ioctls use a common 'struct devreq' which is somewhat
  similar to 'struct ifreq'.
- The ioctls identify the device to operate on via a string.  This
  string can either by the device's name, or it can be a bus-specific
  address.  (For unattached devices, a bus address is the only way to
  locate a device.)  Bus drivers register an eventhandler to claim
  unrecognized device names that the driver recognizes as a valid address.
  Two buses currently support addresses: ACPI recognizes any device
  in the ACPI namespace via its full path starting with "\" and
  the PCI bus driver recognizes an address specification of
  'pci[<domain>:]<bus>:<slot>:<func>' (identical to the PCI selector
  strings supported by pciconf).
- To make it easier to cut and paste, change the PnP location string
  in the PCI bus driver to output a full PCI selector string rather
  than 'slot=<slot> function=<func>'.
- Add a devctl(3) interface in libdevctl which provides a wrapper around
  the ioctls and is the preferred interface for other userland code.
- Add a devctl(8) program which is a simple wrapper around the requests
  supported by devctl(3).
- Add a device_is_suspended() function to check DF_SUSPENDED.
- Add a resource_unset_value() function that can be used to remove a
  hint from the kernel environment.  This is used to clear a
  hint.<driver>.<unit>.disabled hint when re-enabling a boot-time
  disabled device.

Reviewed by:	imp (parts)
Requested by:	imp (changing PCI location string)
Relnotes:	yes
2015-02-06 16:09:01 +00:00
..
apropos.1 Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
att.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
cgi.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
cgi.h.example Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
chars.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
chars.in Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
compat_fgetln.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
compat_fts.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
compat_fts.h Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
compat_getsubopt.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
compat_ohash.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
compat_ohash.h Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
compat_reallocarray.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
compat_sqlite3_errstr.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
compat_strcasestr.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
compat_strlcat.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
compat_strlcpy.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
compat_strsep.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
config.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
configure Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
configure.local.example Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
demandoc.1 Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
demandoc.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
eqn_html.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
eqn_term.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
eqn.7 Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
eqn.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
example.style.css Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
gmdiff Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
html.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
html.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
INSTALL Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
lib.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
lib.in Add a new device control utility for new-bus devices called devctl. This 2015-02-06 16:09:01 +00:00
libman.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
libmandoc.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
libmdoc.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
libroff.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
LICENSE Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
main.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
main.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
Makefile Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
Makefile.depend Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
makewhatis.8 Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
man_hash.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
man_html.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
man_macro.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
man_term.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
man_validate.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
man-cgi.css Add missing bits svn merge did not catch 2014-11-22 20:18:38 +00:00
man.1 Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
man.7 Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
man.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
man.cgi.8 Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
man.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mandoc_aux.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
mandoc_aux.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mandoc_char.7
mandoc_escape.3 Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
mandoc_headers.3 Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mandoc_html.3 Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
mandoc_malloc.3 Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
mandoc.1 Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mandoc.3 Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
mandoc.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
mandoc.db.5 Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
mandoc.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mandocdb.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
manpage.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
manpath.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
manpath.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mansearch_const.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mansearch.3 Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mansearch.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mansearch.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mchars_alloc.3 Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
mdoc_argv.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
mdoc_hash.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
mdoc_html.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mdoc_macro.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mdoc_man.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mdoc_term.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mdoc_validate.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mdoc.7 Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
mdoc.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
mdoc.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
msec.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
msec.in
NEWS Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
out.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
out.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
preconv.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
predefs.in
read.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
roff.7 Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
roff.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
st.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
st.in Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
style.css Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
tbl_data.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
tbl_html.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
tbl_layout.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
tbl_opts.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
tbl_term.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
tbl.3 Add missing bits svn merge did not catch 2014-11-22 20:18:38 +00:00
tbl.7 Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
tbl.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
term_ascii.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
term_ps.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
term.c Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
term.h Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
test-dirent-namlen.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
test-fgetln.c Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
test-fts.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
test-getsubopt.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
test-mmap.c Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
test-ohash.c Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
test-reallocarray.c Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
test-sqlite3_errstr.c Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
test-sqlite3.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
test-strcasestr.c Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
test-strlcat.c Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
test-strlcpy.c Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
test-strptime.c Add missing bits svn merge did not catch 2014-11-22 20:18:38 +00:00
test-strsep.c Update mandoc to 1.13.1 2014-11-22 18:57:23 +00:00
test-wchar.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00
TODO Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
tree.c Update to mandoc cvs version as of 20141201 2014-12-02 23:24:57 +00:00