code: def detach_kernel_driver(self, interface):
          r
          self._ctx.managed_open()
          self._ctx.backend.detach_kernel_driver(
              self._ctx.handle,
              interface)
docs: r"""Detach a kernel driver.
  
          If successful, you will then be able to perform I/O.
  
          The interface parameter is the device interface number to detach the
          driver from.