<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libdevctl, branch release/11.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F11.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F11.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2019-04-19T13:18:54Z</updated>
<entry>
<title>MFC r345966, r345968:</title>
<updated>2019-04-19T13:18:54Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2019-04-19T13:18:54Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=910aecad568720cdcac1e1c177c142f58616908d'/>
<id>urn:sha1:910aecad568720cdcac1e1c177c142f58616908d</id>
<content type='text'>
Implement devctl(8) command 'reset', using DEV_RESET /dev/devctl2 ioctl.
</content>
</entry>
<entry>
<title>MFC r345959:</title>
<updated>2019-04-19T12:33:58Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2019-04-19T12:33:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=fb294115ac3ec7aa4f60a3d878002f99c130981f'/>
<id>urn:sha1:fb294115ac3ec7aa4f60a3d878002f99c130981f</id>
<content type='text'>
Add __BEGIN_DECLS/__END_DECLS braces to libdevctl header.
</content>
</entry>
<entry>
<title>MFC 305034: Implement 'devctl clear driver' to undo a previous 'set driver'.</title>
<updated>2016-09-30T22:05:47Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2016-09-30T22:05:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f8e53f30b02e94f6eb48fc80c81c0deb5ef342f2'/>
<id>urn:sha1:f8e53f30b02e94f6eb48fc80c81c0deb5ef342f2</id>
<content type='text'>
Add a new 'clear driver' command for devctl along with the accompanying
ioctl and devctl_clear_driver() library routine to reset a device to
use a wildcard devclass instead of a fixed devclass.  This can be used
to undo a previous 'set driver' command.  After the device's name has
been reset to permit wildcard names, it is reprobed so that it can
attach to newly-available (to it) device drivers.

Sponsored by:	Chelsio Communications
</content>
</entry>
<entry>
<title>Add 'devctl delete' that calls device_delete_child().</title>
<updated>2016-04-27T16:33:17Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2016-04-27T16:33:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=88eb5c506d00e446dcfeb0f84b36d5132a8d9f6b'/>
<id>urn:sha1:88eb5c506d00e446dcfeb0f84b36d5132a8d9f6b</id>
<content type='text'>
'devctl delete' can be used to delete a device that is no longer present.
As an anti-foot-shooting measure, 'delete' will not delete a device
unless it's parent bus says it is no longer present.  This can be
overridden by passing the force ('-f') flag.

Note that this command should be used with care.  If a device is deleted
that is actually present it can't be resurrected unless the parent bus
device's driver supports rescans.

Differential Revision:	https://reviews.freebsd.org/D6019
</content>
</entry>
<entry>
<title>Add a new rescan method to the bus interface.</title>
<updated>2016-04-27T16:29:03Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2016-04-27T16:29:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a907c6914c5879870b2597a63253cea0a5b7bdb8'/>
<id>urn:sha1:a907c6914c5879870b2597a63253cea0a5b7bdb8</id>
<content type='text'>
The BUS_RESCAN() method rescans a single bus device checking for devices
that have been added or removed from the bus.  A new 'rescan' command is
added to devctl(8) to trigger a rescan.

Differential Revision:	https://reviews.freebsd.org/D6016
</content>
</entry>
<entry>
<title>First pass through library packaging.</title>
<updated>2016-02-04T21:16:35Z</updated>
<author>
<name>Glen Barber</name>
<email>gjb@FreeBSD.org</email>
</author>
<published>2016-02-04T21:16:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=a70cba95822f662d3f9da5119b6a0c433e8f70af'/>
<id>urn:sha1:a70cba95822f662d3f9da5119b6a0c433e8f70af</id>
<content type='text'>
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>- Note that devctl(8) will appear in 10.3 first.</title>
<updated>2016-02-02T22:55:03Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2016-02-02T22:55:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=0fd00e0caa889111fc31617db9cd9aa52e9c5eec'/>
<id>urn:sha1:0fd00e0caa889111fc31617db9cd9aa52e9c5eec</id>
<content type='text'>
- Add missing devctl_set_driver entry to namelist in devlist(3).
- Fix sorting of function prototypes in devlist(3).

MFC after:	3 days
</content>
</entry>
<entry>
<title>META MODE: Update dependencies with 'the-lot' and add missing directories.</title>
<updated>2015-12-01T05:23:19Z</updated>
<author>
<name>Bryan Drewery</name>
<email>bdrewery@FreeBSD.org</email>
</author>
<published>2015-12-01T05:23:19Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b1f92fa22938fe29ab7e53692ffe0ed7a0ecc4d0'/>
<id>urn:sha1:b1f92fa22938fe29ab7e53692ffe0ed7a0ecc4d0</id>
<content type='text'>
This is not properly respecting WITHOUT or ARCH dependencies in target/.
Doing so requires a massive effort to rework targets/ to do so.  A
better approach will be to either include the SUBDIR Makefiles directly
and map to DIRDEPS or just dynamically lookup the SUBDIR.  These lose
the benefit of having a userland/lib, userland/libexec, etc, though and
results in a massive package.  The current implementation of targets/ is
very unmaintainable.

Currently rescue/rescue and sys/modules are still not connected.

Sponsored by:	EMC / Isilon Storage Division
</content>
</entry>
<entry>
<title>Add a new device control utility for new-bus devices called devctl.  This</title>
<updated>2015-02-06T16:09:01Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2015-02-06T16:09:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=64de80195bba295c961a4cdf96dbe0e4979bdf2a'/>
<id>urn:sha1:64de80195bba295c961a4cdf96dbe0e4979bdf2a</id>
<content type='text'>
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[&lt;domain&gt;:]&lt;bus&gt;:&lt;slot&gt;:&lt;func&gt;' (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=&lt;slot&gt; function=&lt;func&gt;'.
- 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.&lt;driver&gt;.&lt;unit&gt;.disabled hint when re-enabling a boot-time
  disabled device.

Reviewed by:	imp (parts)
Requested by:	imp (changing PCI location string)
Relnotes:	yes
</content>
</entry>
</feed>
