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

Function lwp_fd_new

components/lwp/lwp_ipc.c:939–952  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

937/* for API */
938
939static int lwp_fd_new(int fdt_type)
940{
941 struct dfs_fdtable *fdt;
942
943 if (fdt_type)
944 {
945 fdt = dfs_fdtable_get_global();
946 }
947 else
948 {
949 fdt = dfs_fdtable_get();
950 }
951 return fdt_fd_new(fdt);
952}
953
954static struct dfs_file *lwp_fd_get(int fdt_type, int fd)
955{

Callers 1

_chfd_allocFunction · 0.85

Calls 3

dfs_fdtable_get_globalFunction · 0.50
dfs_fdtable_getFunction · 0.50
fdt_fd_newFunction · 0.50

Tested by

no test coverage detected