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

Function lwp_fd_release

components/lwp/lwp_ipc.c:969–982  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967}
968
969static void lwp_fd_release(int fdt_type, int fd)
970{
971 struct dfs_fdtable *fdt;
972
973 if (fdt_type)
974 {
975 fdt = dfs_fdtable_get_global();
976 }
977 else
978 {
979 fdt = dfs_fdtable_get();
980 }
981 fdt_fd_release(fdt, fd);
982}
983
984static int _chfd_alloc(int fdt_type)
985{

Callers 1

_chfd_freeFunction · 0.85

Calls 3

dfs_fdtable_get_globalFunction · 0.50
dfs_fdtable_getFunction · 0.50
fdt_fd_releaseFunction · 0.50

Tested by

no test coverage detected