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

Function serial_fops_close

components/drivers/serial/dev_serial_v2.c:105–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105static int serial_fops_close(struct dfs_file *fd)
106{
107 rt_device_t device;
108
109 device = (rt_device_t)fd->vnode->data;
110
111 rt_device_set_rx_indicate(device, RT_NULL);
112 rt_device_close(device);
113
114 return 0;
115}
116
117static int serial_fops_ioctl(struct dfs_file *fd, int cmd, void *args)
118{

Callers

nothing calls this directly

Calls 2

rt_device_closeFunction · 0.85

Tested by

no test coverage detected