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

Function sys_device_open

components/lwp/lwp_syscall.c:4958–4961  ·  view source on GitHub ↗

* @brief Opens a device for use. * * This system call opens the specified device, making it ready for interaction with the system * or other components. The device must have been previously registered and initialized. * The `oflag` parameter specifies the open mode, which may determine how the device is accessed * (e.g., read, write, or exclusive access). * * @param[in] dev A pointer to

Source from the content-addressed store, hash-verified

4956 * in errors or undefined behavior.
4957 */
4958sysret_t sys_device_open(rt_device_t dev, rt_uint16_t oflag)
4959{
4960 return rt_device_open(dev, oflag);
4961}
4962
4963/**
4964 * @brief Closes an open device.

Callers

nothing calls this directly

Calls 1

rt_device_openFunction · 0.85

Tested by

no test coverage detected