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

Function sys_device_register

components/lwp/lwp_syscall.c:4873–4876  ·  view source on GitHub ↗

* @brief Registers a device with the system. * * This system call registers a device with the system, making it available for interaction * by the operating system or other components. Registration typically involves associating * the device with a name and setting up the necessary flags for the device's behavior. * * @param[in] dev A pointer to the device structure that represents the d

Source from the content-addressed store, hash-verified

4871 * Passing invalid `dev` or `flags` may result in unexpected behavior or failure of device registration.
4872 */
4873sysret_t sys_device_register(rt_device_t dev, const char *name, rt_uint16_t flags)
4874{
4875 return rt_device_register(dev, name, flags);
4876}
4877
4878/**
4879 * @brief Controls a device by sending a command.

Callers

nothing calls this directly

Calls 1

rt_device_registerFunction · 0.85

Tested by

no test coverage detected