co_usb
Loading...
Searching...
No Matches
driver_guard.hpp File Reference

RAII wrapper for detaching and reattaching kernel driver. More...

Include dependency graph for driver_guard.hpp:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

RAII wrapper for detaching and reattaching kernel driver.