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

Function _chfd_free

components/lwp/lwp_ipc.c:999–1009  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997}
998
999static void _chfd_free(int fd, int fdt_type)
1000{
1001 struct dfs_file *d;
1002
1003 d = lwp_fd_get(fdt_type, fd);
1004 if (d == RT_NULL)
1005 {
1006 return;
1007 }
1008 lwp_fd_release(fdt_type, fd);
1009}
1010
1011/* for fops */
1012static int channel_fops_poll(struct dfs_file *file, struct rt_pollreq *req)

Callers 2

lwp_channel_openFunction · 0.85
lwp_channel_closeFunction · 0.85

Calls 2

lwp_fd_getFunction · 0.85
lwp_fd_releaseFunction · 0.85

Tested by

no test coverage detected