[−][src]Function mynewt::kernel::os::os_dev_lookup
pub unsafe extern "C" fn os_dev_lookup(name: *const c_char) -> *mut os_dev
Lookup a device by name.
WARNING: This should be called before any locking on the device is done, or the device list itself is modified in any context. There is no locking.
name
: The name of the device to look up.
Return: A pointer to the device corresponding to name, or NULL if not found.