* @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. *
| 5048 | * or invalid data may lead to undefined behavior. |
| 5049 | */ |
| 5050 | rt_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 */ |
nothing calls this directly
no test coverage detected