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

Function sys_device_write

components/lwp/lwp_syscall.c:5050–5053  ·  view source on GitHub ↗

* @brief Writes data to an open device. * * This system call writes data to the specified device, starting at the given position and using * the provided buffer. The device must be open and ready for writing. The amount of data to write * is determined by the `size` parameter. * * @param[in] dev A pointer to the device structure representing the device to write to. *

Source from the content-addressed store, hash-verified

5048 * or invalid data may lead to undefined behavior.
5049 */
5050rt_ssize_t sys_device_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size)
5051{
5052 return rt_device_write(dev, pos, buffer, size);
5053}
5054
5055#ifdef RT_USING_SAL
5056/* network interfaces */

Callers

nothing calls this directly

Calls 1

rt_device_writeFunction · 0.85

Tested by

no test coverage detected