<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.sbin/devctl/Makefile, branch release/13.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F13.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2015-02-16T02:20:11Z</updated>
<entry>
<title>install the man page...</title>
<updated>2015-02-16T02:20:11Z</updated>
<author>
<name>John-Mark Gurney</name>
<email>jmg@FreeBSD.org</email>
</author>
<published>2015-02-16T02:20:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=add9975cd13aaa630c60da795564bf2f175b51a3'/>
<id>urn:sha1:add9975cd13aaa630c60da795564bf2f175b51a3</id>
<content type='text'>
Sponsored by:	FreeBSD Foundation
</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/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>
