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

Function lwp_fd_get

components/lwp/lwp_ipc.c:954–967  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954static struct dfs_file *lwp_fd_get(int fdt_type, int fd)
955{
956 struct dfs_fdtable *fdt;
957
958 if (fdt_type)
959 {
960 fdt = dfs_fdtable_get_global();
961 }
962 else
963 {
964 fdt = dfs_fdtable_get();
965 }
966 return fdt_get_file(fdt, fd);
967}
968
969static void lwp_fd_release(int fdt_type, int fd)
970{

Callers 4

_chfd_freeFunction · 0.85
lwp_channel_openFunction · 0.85
fd_2_channelFunction · 0.85
lwp_channel_closeFunction · 0.85

Calls 3

fdt_get_fileFunction · 0.85
dfs_fdtable_get_globalFunction · 0.50
dfs_fdtable_getFunction · 0.50

Tested by

no test coverage detected