1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00
freebsd/lib
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
..
atf Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
clang Followup to r278223, by only using -stdlib=libc++ when the compiler is 2015-02-04 21:48:50 +00:00
csu Add a comment explaining why gcc is needed. 2015-02-06 02:35:29 +00:00
libalias
libarchive Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libauditd
libbegemot
libblocksruntime Follow up to r276851 by also committing a necessary update to 2015-01-08 20:08:00 +00:00
libbluetooth
libbsdstat
libbsm
libbsnmp Fix build with recent binutils 2014-12-23 10:43:35 +00:00
libbz2
libc Update comment and NetBSD ID tag. 2015-02-06 14:22:00 +00:00
libc_nonshared
libc++ Import libc++ trunk r224926. This fixes a number of bugs, completes 2015-01-15 21:17:36 +00:00
libcalendar
libcam Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libcapsicum Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libcasper Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libclang_rt Upgrade our copy of clang and llvm to 3.5.1 release. This is a bugfix 2015-01-18 14:14:47 +00:00
libcom_err Remove GNU texinfo from base along with all info pages. 2015-01-02 18:45:03 +00:00
libcompat
libcompiler_rt With the update of compiler-rt we try to build a number of files that 2015-01-09 20:00:37 +00:00
libcrypt Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libcuse Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libcxxrt Add support for __cxa_throw_bad_array_new_length in libcxxrt 2014-10-21 10:19:45 +00:00
libdevctl Add a new device control utility for new-bus devices called devctl. This 2015-02-06 16:09:01 +00:00
libdevinfo Expose the constants for internal new-bus device flags to userland. The 2015-02-05 22:42:44 +00:00
libdevstat Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libdpv mdoc: improvements to SEE ALSO. 2014-12-27 08:22:58 +00:00
libdwarf Update elftoolchain to upstream rev 3130 2014-12-29 19:16:40 +00:00
libedit Remove junk added during testing phase 2015-01-09 07:48:22 +00:00
libefi
libelf
libelftc Update reported elftoolchain version 2015-01-22 17:53:30 +00:00
libevent Promote libevent to lib/ level and fold ftp-proxy into its parent Makefile. 2014-10-13 22:15:26 +00:00
libexecinfo Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libexpat Add a ${CP} alias for copying files in the build. 2015-01-16 21:39:08 +00:00
libfetch Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libfigpar Add new libraries/utilities for data throughput visualization. 2014-11-04 23:46:01 +00:00
libgeom Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libgpib
libgpio Fix an off-by-one in gpio_pin_list(). 2014-12-02 06:24:45 +00:00
libgssapi mdoc: sort SEE ALSO. 2014-12-29 21:52:32 +00:00
libiconv
libiconv_modules
libipsec
libjail In preparation for using clang's -Wcast-qual: 2014-11-25 21:01:08 +00:00
libkiconv Revert r274772: it is not valid on MIPS 2014-11-25 03:50:31 +00:00
libkvm Allow libkvm to get the kernel va to pa delta without the need for 2014-10-19 20:23:31 +00:00
libldns Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
liblzma Do not regenerate and install liblzma.pc when only build libraries 2015-01-11 09:25:01 +00:00
libmagic Since the merge of file 5.21 in r276415 and r276416, stable/9 and 2015-01-13 20:37:57 +00:00
libmandoc Update mandoc to 1.13.2 2014-12-25 21:56:56 +00:00
libmd Revert r274772: it is not valid on MIPS 2014-11-25 03:50:31 +00:00
libmemstat Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libmilter
libmp Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libnandfs
libnetbsd Commit missing header for sys/time.h compat on NetBSD to unbreak the amd64/i386 2014-11-04 02:00:07 +00:00
libnetgraph Some NetGraph debug polishing. 2015-02-06 09:41:16 +00:00
libngatm
libnv Make gcc happy. 2015-01-30 13:03:36 +00:00
libohash Make libohash a proper internallib instead of hidding it in m4 2014-08-06 22:46:15 +00:00
libopie Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libpam Conditionalize building radius support into libpam, ppp, etc via 2015-02-04 06:53:45 +00:00
libpcap MFV r276759: libpcap 1.6.2. 2015-01-06 22:29:12 +00:00
libpjdlog Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libpmc Add ARMv7 performance monitoring counters. 2015-01-28 16:08:07 +00:00
libproc Stop iterating and return if the caller-supplied callback function returns 2015-01-31 03:22:00 +00:00
libprocstat Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libradius Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
librpcsec_gss mdoc: sort SEE ALSO. 2014-12-29 21:59:44 +00:00
librpcsvc
librt Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
librtld_db mdoc: improvements to SEE ALSO. 2014-12-27 08:31:52 +00:00
libsbuf Unbreak the ABI by reverting r268494 until the compat shims are provided 2014-07-28 07:20:22 +00:00
libsdp
libsm
libsmb Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libsmdb
libsmutil
libsqlite3 Fix typo 2014-11-25 11:08:58 +00:00
libstand Fix usage example in kvprintf(9) and its copy in libstand(3): trailing '\n' 2015-01-23 07:30:57 +00:00
libstdbuf
libstdthreads Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libtacplus Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libtelnet
libthr Fully initialize allocated memory for the new barrier. The 2015-02-06 12:18:38 +00:00
libthread_db Constify a struct savexmm pointer in pt_ucontext_to_fpreg(), to silence 2015-01-27 18:56:46 +00:00
libucl Update libucl to latest version 2014-11-29 00:45:09 +00:00
libufs
libugidfw
libulog Convert libraries to use LIBADD 2014-11-25 11:07:26 +00:00
libunbound Add a ${CP} alias for copying files in the build. 2015-01-16 21:39:08 +00:00
libusb Add more USB request definitions. The values are described in section 2015-01-16 12:11:01 +00:00
libusbhid
libutil gr_equal(): Fix a crash that could occur if the first group's member list 2015-01-25 00:47:06 +00:00
libvgl
libvmmapi Fix a bug in libvmmapi 'vm_copy_setup()' where it would return success even if 2015-01-19 06:51:04 +00:00
libwrap
libxo Upgrade libxo to 0.2.0. 2015-01-19 02:22:03 +00:00
liby
libypclnt
libz only install .pc files when we are not installing 32bit compat libs... 2014-10-27 23:43:25 +00:00
msun scanblnl: drop extra braces. 2015-02-03 16:16:52 +00:00
ncurses Parallelize building lib/ncurses 2014-12-27 21:11:42 +00:00
tests
Makefile Add a new device control utility for new-bus devices called devctl. This 2015-02-06 16:09:01 +00:00
Makefile.inc