[][src]Function mynewt::kernel::os::os_dev_open

pub unsafe extern "C" fn os_dev_open(
    devname: *const c_char,
    timo: u32,
    arg: *mut c_void
) -> *mut os_dev

Open a device.

  • dev: The device to open
  • timo: The timeout to open the device, if not specified.
  • arg: The argument to the device open() call.

Return: 0 on success, non-zero on failure.