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

Function serial_fops_close

components/drivers/serial/dev_serial.c:109–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

rt_device_closeFunction · 0.85

Tested by

no test coverage detected