<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/lib/libdevctl/devctl.h, 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>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>
