|
co_usb
|
RAII wrapper for detaching and reattaching kernel driver. More...
#include "co_usb/usb_error.hpp"#include "co_usb/wrapper/detail/device_handle_source.hpp"#include "co_usb/wrapper/detail/error_protocol.hpp"#include "co_usb/wrapper/error_protocol.hpp"#include <libusb.h>#include <system_error>

Go to the source code of this file.
Classes | |
| struct | co_usb::driver_guard |
| RAII wrapper for detaching and reattaching kernel driver. More... | |
Namespaces | |
| namespace | co_usb |
Functions | |
| template<detail::ErrorProtocol< driver_guard > ErrTy> | |
| auto | co_usb::detach_driver (detail::DeviceHandleSource auto const &devh_src, int interface_num, ErrTy &&errp=as_exception()) -> typename ErrTy::template return_type< driver_guard > |
| Detaches the kernel driver and returns a driver_guard or reports an error per error protocol implementation. | |
| auto | co_usb::detach_driver (detail::DeviceHandleSource auto const &devh_src, int interface_num) -> driver_guard |
| Detaches the kernel driver and returns a driver_guard or throws an error. | |
RAII wrapper for detaching and reattaching kernel driver.