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

Function serial_fops_write

components/drivers/serial/dev_serial.c:185–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183static ssize_t serial_fops_write(struct dfs_file *fd, const void *buf, size_t count, off_t *pos)
184#else
185static ssize_t serial_fops_write(struct dfs_file *fd, const void *buf, size_t count)
186#endif
187{
188 rt_device_t device;
189
190 device = (rt_device_t)fd->vnode->data;
191 return rt_device_write(device, -1, buf, count);
192}
193
194static int serial_fops_poll(struct dfs_file *fd, struct rt_pollreq *req)
195{

Callers

nothing calls this directly

Calls 1

rt_device_writeFunction · 0.85

Tested by

no test coverage detected