Skip to main content

set

Function set 

Source
pub fn set(ctx: &ServiceContext, on: bool) -> bool
Expand description

Cut (false) or restore (true) the power of this driver’s device. true only when the kernel read the power pin back at the level asked for; false where the machine cannot power the device, or the driver holds no DEVICE_POWER.