MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / sys_device_find

Function sys_device_find

components/lwp/lwp_syscall.c:4928–4931  ·  view source on GitHub ↗

* @brief Finds a device by its name. * * This system call searches for a device that has been registered with the system using the * specified name. If the device exists, a pointer to the device structure is returned, * allowing further interaction with the device. If no device with the specified name is found, * a `NULL` pointer is returned. * * @param[in] name The name of the device to s

Source from the content-addressed store, hash-verified

4926 * Passing an invalid or non-registered name will result in `NULL` being returned.
4927 */
4928rt_device_t sys_device_find(const char* name)
4929{
4930 return rt_device_find(name);
4931}
4932
4933/**
4934 * @brief Opens a device for use.

Callers

nothing calls this directly

Calls 1

rt_device_findFunction · 0.85

Tested by

no test coverage detected