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

Function fd_get_fd_index

components/dfs/dfs_v1/src/dfs.c:644–650  ·  view source on GitHub ↗

* @brief get fd (index) by dfs file object. * */

Source from the content-addressed store, hash-verified

642 *
643 */
644int fd_get_fd_index(struct dfs_file *file)
645{
646 struct dfs_fdtable *fdt;
647
648 fdt = dfs_fdtable_get();
649 return fd_get_fd_index_form_fdt(fdt, file);
650}
651
652/**
653 * @brief Associates a file descriptor with a file object.

Callers

nothing calls this directly

Calls 2

fd_get_fd_index_form_fdtFunction · 0.85
dfs_fdtable_getFunction · 0.70

Tested by

no test coverage detected